- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- how to use " chmod +s xx"
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2004 11:49 PM
тАО12-07-2004 11:49 PM
***********************
as a "root"
*****************
1 # cd /sbin
2 # ls -al voldisk
3 #-rwxr xr x 1 bin bin 90208 Jan 25 2003 voldisk
4 # chmod u+s voldisk
5 # chmod g+s voldisk
6 # ls -al voldisk
7 # -rwsr sr x 1 bin bin 90208 Jan 25 2003 voldisk
**********************************
as lctest
1 # su - lctest
2 >voldisk list
3 >You are not privileged to run voldisk
at this time , even the root use cannot excute the command.
as root user:
1 # voldisk list
2 # You are not privileged to run voldisk
what is the problem?
when i change the file attirbut back, the root user can excute.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 12:58 AM
тАО12-08-2004 12:58 AM
Re: how to use " chmod +s xx"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 01:29 AM
тАО12-08-2004 01:29 AM
Re: how to use " chmod +s xx"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 02:13 AM
тАО12-08-2004 02:13 AM
Re: how to use " chmod +s xx"
just be aware that this user will be able to anything voldisk allows not just list.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 04:31 PM
тАО12-08-2004 04:31 PM
Re: how to use " chmod +s xx"
1.i have put the user "lctest" into group bin;
2.yet problem still remains.
when i change the file attribute to rwsr x r x, even the "root"cannot excute this command.
any suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 06:18 PM
тАО12-08-2004 06:18 PM
Re: how to use " chmod +s xx"
this is really weird. voldisk has no s bit set at all on our computer. root should be able to run it anyway. the s bit allows only non root user to act as root user so it could not add anything for the root himself.
Please run pwck and grpck to see whether passwd and group are consistent.
Does it still say you are not priviledged?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 07:31 PM
тАО12-08-2004 07:31 PM
Re: how to use " chmod +s xx"
Hi,Michael :
nice to receive ur suggestion.
originally voldisk has no s bit set at my computer too. after i set the s bit with 'chmod +s",neither the "root" nor the "lctest" cannot run "voldisk".return same response:"You are not privileged to run voldisk".
lctest's pri goup was in group "bin"├г ├в system├в ├п┬╝
following is capatured:
nmgrhjf1# ls -al voldisk
-rwxrwxr-x 1 bin bin 90208 Jan 25 2003 voldisk
nmgrhjf1# chm0d u+s voldisk
nmgrhjf1# chmod g+s voldisk
nmgrhjf1# ls -al voldisk
-rwsrwsr-x 1 bin bin 90208 Jan 25 2003 voldisk
nmgrhjf1# su lctest
$ voldisk list
You are not privileged to run voldisk
$ exit
nmgrhjf1# ls -al voldisk
-rwsrwsr-x 1 bin bin 90208 Jan 25 2003 voldisk
nmgrhjf1# voldisk list
You are not privileged to run voldisk
nmgrhjf1# chmod u-s voldisk
nmgrhjf1# chmod g-s voldisk
nmgrhjf1# voldisk list
DEVICE TYPE DISK GROUP STATUS
dsk0 sliced - - unknown
dsk1 sliced - - unknown
dsk2 sliced - - unknown
dsk3b simple dsk3b rootdg online
dsk4 sliced - - unknown
dsk5 sliced - - unknown
dsk6 sliced - - unknown
dsk7 sliced - - unknown
dsk8 sliced - - unknown
dsk9 sliced - - unknown
dsk10 sliced dsk10 datadg1 online
dsk11 sliced dsk11 datadg1 online
dsk12 sliced dsk12 datadg1 online
nmgrhjf1# ls -al voldisk
-rwxrwxr-x 1 bin bin 90208 Jan 25 2003 voldisk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:34 PM
тАО12-08-2004 11:34 PM
SolutionI have tried some things and I have come to the following insight.
voldisk must run as root.
setting the s bit makes it run as bin and therefore root no longer has the necessary priviledge.
You would have to set the owner to root, set the s bit and the group to something that only lstest is member of. voldisk can be run then as lctest. There are however some implications like problems when patching or security issues. So it is up to you.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2004 12:19 AM
тАО12-09-2004 12:19 AM
Re: how to use " chmod +s xx"
originaly "ping" 's owner is root:bin.
ls -al ping
-rwsr-xr-x 1 root bin 49472 Jan 25 2003 ping
so, lctest also can use ping.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2004 12:26 AM
тАО12-09-2004 12:26 AM
Re: how to use " chmod +s xx"
you do not need root for ping except for a few options like flooding.
greetings,
Michael
ps. thanks for the points!