Re: How to make mount command mount partions as user not only as root ?
- From: Michael Black <et472@xxxxxx>
- Date: Thu, 15 May 2008 01:23:06 -0400
On Thu, 15 May 2008, =SERGE= wrote:
helloRead the man page for mount:
Thak you for your replies
well, i know that i can use fstab etc but Why cant' I pass params to mount
command directly? Mount command reads what is written in fstab, does it not?
Exacly in this way it should read the params i set should it not?
I vaguely remember that there was a way of doing it... by changing chmod +s
for mount
"Normally, only the superuser can mount file systems. However,
when fstab contains the user option on a line, anybody can mount
the corresponding system."
The mount command is written in such a way that it's aware of who
is running it, and will only allow full use of the options if it's
run as root.
But since users may need to mount things at times, that is allowed
for, but only under controlled situations. Thus if fstab has
been configured to allow it, it can happen. Since only root can
edit fstab, the system administrator can control what the user
can mount, and where it can be mounted.
If anyone could run root any way they wish, then someone could
copy /etc to something mountable, edit things to their liking,
and then mount it over the existing /etc Whammo, they get control
of the system.
But mount doesn't allow that, so the user can only mount that copy
of /etc to somewhere specified by the administrator in fstab.
The permission of the mount point, and the permission of the partition
or removeable device is a completely different matter.
Michael
.
- References:
- How to make mount command mount partions as user not only as root ?
- From: =SERGE=
- Re: How to make mount command mount partions as user not only as root ?
- From: Dances With Crows
- Re: How to make mount command mount partions as user not only as root ?
- From: =SERGE=
- Re: How to make mount command mount partions as user not only as root ?
- From: Joe Pfeiffer
- Re: How to make mount command mount partions as user not only as root ?
- From: Aragorn
- Re: How to make mount command mount partions as user not only as root ?
- From: =SERGE=
- How to make mount command mount partions as user not only as root ?
- Prev by Date: Re: 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: Re: 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
|