Find the answer to your Linux question:
Results 1 to 4 of 4
I'm trying to setup a Samba server and I cannot make the files and folders inherit the permissions of the parent folder. I'd like to set the permissions on the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    2

    HELP! Can't make SAMBA Inherit Permissions


    I'm trying to setup a Samba server and I cannot make the files and folders inherit the permissions of the parent folder. I'd like to set the permissions on the parent folder and have them propogate down as well as become inherit to new files and folders. I've tried setting the "inherit permissions" option. Here is part of my smb.conf file. Any ideas??

    [gdwin]
    path = /gdwin
    public = yes
    writeable = yes
    guest ok = yes
    inherit permissions = YES
    create mask = 770
    force create mode = 770
    force directory mode = 770
    # inherit permissions = yes
    [accounting]
    path = /accounting
    writeable = yes
    valid users = angela, paul, rickr, shevin
    inherit permissions = yes
    [test]
    path = /var/test
    writeable = yes
    comment = test
    guest ok = yes

    [drive_c]
    path = /root/.wine/drive_c
    writeable = yes
    comment = drivec
    guest ok = yes
    inherit permissions = yes
    [ftpshare]
    path = /var/ftp
    writeable = yes
    coment = ftpshare
    guest ok = no
    inherit permissions = yes

  2. #2
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    i'm not quite familiar with Samba, but I dont think inherits will set all the subsequent folder the same as the "top" one... can't you use the good old umask?
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Posts
    2
    I suppose i could, but if a user adds a new folder or creates a new file, i'd have to go in and umask that fold or file, it wouldn't automatically inherit the permissions of it's parent.

  4. #4
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    :S and what if you set the folder to a specific group... that group would inherit its right...
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •