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

Users Cannot Write to a Public Share

We are facing some troubles with file/directory permissions. I can log on the domain as admin user (root), and there's a public share on which everyone needs to have permission to create/modify files, but only root can change the file, no one else can. We need to constantly go to the server to chgrp -R users * and chown -R nobody * to allow other users to change the file.

There are many ways to solve this problem, and here are a few hints:

  1. Go to the top of the directory that is shared.

  2. Set the ownership to whatever public user and group you want

    $ find `directory_name' -type d -exec chown user:group {}\;
    $ find `directory_name' -type d -exec chmod 1775 {}\;
    $ find `directory_name' -type f -exec chmod 0775 {}\;
    $ find `directory_name' -type f -exec chown user:group {}\;
    

    Samba HowTo Guide
    Prev Home Next

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