- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mount as a normal user
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
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
тАО10-17-2001 12:51 AM
тАО10-17-2001 12:51 AM
Mount as a normal user
Can I do that?
Best Regards
Jan Studsgaard
jsj@unimerco.dk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 01:03 AM
тАО10-17-2001 01:03 AM
Re: Mount as a normal user
Sorry, you cant. The mount command can only be run by root, even if you change the permissions to 4555 (setuid to root) you still cannot run it as non root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 01:04 AM
тАО10-17-2001 01:04 AM
Re: Mount as a normal user
from the man pages:
"The mount command mounts file systems. Only a superuser can mount file systems. Other users can use mount to list mounted file systems."
There are of course workarounds with sudo or executables with 'set-owner-ID-on-file-execution'.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 08:16 AM
тАО10-17-2001 08:16 AM
Re: Mount as a normal user
YES, you can! You start SAM with the "-r" option, and instruct it to add a new command. That would be the mount command, to br run under user-id "root". Then you instruct SAM to permit that commadn for your "plain" user.
That's all,
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 08:25 AM
тАО10-17-2001 08:25 AM
Re: Mount as a normal user
This is normally a VERY dangerous command for a non-root user to use. While you can set up a SAM user to allow this command or get sudo from one one the HP-UX Porting Centers to do the same thing - it is still dangerous. If I were going to allow anything, it would be to mount/unmount a cdrom. In which case, I would write a wrapper script for the commands to only mount/unmount the cdrom and then sudo or make this a SAM -r type command.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 08:52 AM
тАО10-17-2001 08:52 AM
Re: Mount as a normal user
1) Restricted sam (sam -r) to set up.
2) Use sudo
3) use 3rd party utility such as PowerBroker, AccessControl, etc.
Personally, I agree with Stephan, limit this as much as you can. If there are only certain filesystems you want them to mount/umount, then write a wrapper script to specifically only allow mount/umounts of them and use one of the methods above to let them run it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 10:38 PM
тАО10-17-2001 10:38 PM
Re: Mount as a normal user
I suppose you want to mount the cdrom and or floppy (I don't see any other filesystems you may want to mount as an user).
Write a program / script which runs as root that is something like an interface (imagine something with four buttons: mount/umount cdrom/floppy).
There are other ways as sudo. The mount command doesn't care about setuid root as it checks for the user's that issues the command id.
E.