Re: How to make mount command mount partions as user not only as root ?
- From: Dances With Crows <danceswithcrows@xxxxxxx>
- Date: 14 May 2008 16:27:43 GMT
=SERGE= staggered into the Black Sun and said:
I'd be grateful if you'd explain [to] me [how to] get [the] mount
command to mount partions as user not only as root (w/o fstab)
Wait. What do you mean "without fstab"? The whole *point* of the
"user" and "users" keywords in fstab is to allow users to mount and
umount certain filesystems. They invented a good way to do this many
years ago. Use that way, or post a good explanation of why it won't
work for you.
mount -t vfat /dev/hda4 /mnt/hda4
'Only root can do that'
Only root is allowed to pass parameters to mount. Non-root users can do
"mount $DEVICE" or "mount $MOUNT_POINT", that's all. If a user could
override fstab-supplied parameters, that user could mount a removable
medium that had writable device nodes or arbitrary SUID-root programs on
it. This is a huge security hole, so users are not allowed to pass
parameters.
--
There is not enough coffee in the world.
--TimC in ASR
My blog and resume: http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.
- Follow-Ups:
- References:
- Prev by Date: How to make mount command mount partions as user not only as root ?
- Next by Date: Re: How to make mount command mount partions as user not only as root ?
- Previous by thread: How to make mount command mount partions as user not only as root ?
- Next by thread: Re: How to make mount command mount partions as user not only as root ?
- Index(es):
Relevant Pages
|