Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Samba HowTo Guide
Prev Home Next

Note

This is the same as doing:

$ 

chown jack /foodbar

$ 

chgrp engr /foodbar

  • Now type:

    $ 
    
    chmod 6775 /foodbar
    
    $ 
    
    ls -al /foodbar/..
    
    

    You should see:

    drwsrwsr-x  2 jack  engr    48 2003-02-04 09:55 foodbar
    

  • Now type:

    $ 
    
    su - jill
    
    $ 
    
    cd /foodbar
    
    $ 
    
    touch Afile
    
    $ 
    
    ls -al
    
    

    You should see that the file Afile created by Jill will have ownership and permissions of Jack, as follows:

    -rw-r--r--  1 jack  engr     0 2003-02-04 09:57 Afile
    

  • Now in your smb.conf for the share add:

    force create mode = 0775
    force directory mode = 6775

    Samba HowTo Guide
    Prev Home Next

  •  
     
      Published under the terms fo the GNU General Public License Design by Interspire