- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Stickby Bit Change Mode
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
Forums
Discussions
Discussions
Discussions
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
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
06-27-2005 03:11 PM
06-27-2005 03:11 PM
please assist me on how could I run a super user (root) command using my normal id.
I got the messages below :
user id was not superuser
must be superuser to execute
Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 03:29 PM
06-27-2005 03:29 PM
Re: Stickby Bit Change Mode
The long listing of your file should look like this if sticky bit is set. To set it give
-rwxr-xr-t 1 root sys 12 Jun 28 08:55 test
#chmod u+t filename
To Remove
#chmod u-t filename
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 03:29 PM
06-27-2005 03:29 PM
Re: Stickby Bit Change Mode
http://www.courtesan.com/sudo
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p7/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 03:30 PM
06-27-2005 03:30 PM
Solution1) The file must be owned by root.
2) You then set the setuid bit by or'ing Octal 4000 with the lower 9-bits. e.g. chmod 4755 myfile.exe
Hovewer, if you do this as an ordinary user:
chmod 4755 myfile.exe
chown root myfile.exe
the setuid bit bit will be cleared; otherwise, there would be a huge security hole.
Even if you carry out the above steps in the correct order that is still no guarantee that the process will execute as root because the other condition is that the setuid() system call must be employed in the program itself.
If this is a shell-script then setting the setuid bit will do the job although such shell scripts are huge security risks.
The better answer is to download and insta;; the "sudo" utility from any of the HP-UX Porting Centre's. This utility will do the trick for you even if the underlying program does not employ the setuid() system call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 03:52 PM
06-27-2005 03:52 PM
Re: Stickby Bit Change Mode
To update,
As Devender Khatana advise to chmod u+t filename. The command is work but still I can't run the superuser command.
As A Clay Stephenson advices, it works. Now my normal Id can run the super user command.
As Patrick advised to use sudo. It look great but still need to further explore as I'm not yet familiar with the sudo.
By the way, Thank to all for the help.
Regard
- Kamarul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 04:11 PM
06-27-2005 04:11 PM
Re: Stickby Bit Change Mode
This forum is very usefull for me.