Re: mount per user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/23/05, Ankush Grover <ankush174@xxxxxxxxx> wrote:
> On 8/23/05, brouwers roland lx <roland@xxxxxx> wrote:
> > Hello everybody,
> >
> > I have a client with a MSserver and a server Fedora3.
> > On te MsServer every user has a home dir.
> > I would like to mount his homedir on the MsServer everytime he logs in.
> > I thought of inserting a line into /etc/fstab
> > //HisComputer/HisShare  /mnt/MyMount     smbfs     noauto,user 0 0
> > And put a mount /mnt/MyMount  into ~/.bashrc
> > and do the umount in ~/.bash_logout
> > But somehow it does not work.
> >
> > Linux refuses to mount as a normal user
> > so i have to use sudo.
> > Is there a better way?
> >
> > Thanks
> > Roland
> > roland@xxxxxx
> >
> 
> One way
> run smbmount and smbumount with setuid
> 
> chmod u+s smbmount
> chmod u+s smbumount
>
But ofcourse security problems.


Or you can mention the owner of the home dir  with uid and gid in fstab
 
//HisComputer/HisShare  /mnt/MyMount     smbfs    uid=515,gid=515 0 0

Now user with uid 515 and group with id 515 has all the rights on
their home directory.

Regards

Ankush Grover


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux