Announcement

Collapse
No announcement yet.

Samba mount security in fstab?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Samba mount security in fstab?

    Hi,

    I have a network drive (not secured) that my home PCs (Windows and Linux) have access to. In order to use Amorak and the music on it I have created mount points for them that link into both mine and my wifes Kubuntu home drive. I want some friends who are staying over to use the kubuntu PC for emails and the like but I don't want them to have access to the separate storage. At the moment I have >

    //192.168.1.68/Shared\040Files /home/jim/lanMusic smbfs fmask=0777, dmask=0777 0 0

    Does anyone know how I can only have user one and two to only have access to these shares? I need to change them as they show on my friends desktops when they log in.

    All help or pointers are appreciated.

    Regards

    K

    #2
    Re: Samba mount security in fstab?

    The way I handled it on my home lan is to mount the samba shares with ownership set to a specific group, in my case smb. The option for it is gid=<group>, so in your case:

    //192.168.1.68/Shared\040Files /home/jim/lanMusic smbfs fmask=0777, dmask=0777,gid=<group> 0 0

    If you stick your and your wife's account into a special group and leave out your friends out of that group (while of course adjusting your fmask and dmask options to something like fmask=660 and dmask=770), you should be pretty set.

    Comment

    Working...
    X