Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> File Permissions, File permissions
post Aug 5 2003, 12:39 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 9
Joined: 5-August 03
Member No.: 1,205

On my linux server in my office, i have a folder that is shared with samba containing all of the files that three of the employees use together. The problem is that the first person that uses one of the files becomes the owner, and the rest do not get write access. I am using Red Hat 9 and wanted to know if there was a way I could do this faster without going into every file and changing the permissions. The folder is already set with permissions for everyone, just not the files contained inside.

Thanks for your help,
Go to the top of the page
+Quote Post
post Aug 5 2003, 01:11 PM
Post #2

LinuxHelp Admin

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1

Create a group and put those 3 users in the group and then change the group ownership on the file to the group.

For example,

To create a group called 3guys run:

groupadd 3guys

Then in /etc/group you will see something like this:


Change this to


Then run:

chown root.3guys /path/to/file

and then:

chmod 664 /path/to/file
Go to the top of the page
+Quote Post
post Aug 10 2003, 10:00 PM
Post #3

Whats this Lie-nix Thing?

Group: Members
Posts: 4
Joined: 10-August 03
Member No.: 1,243


There is another solution which you may want to consider. Samba has the ability to force read/writes as a single user or group. In the smb.conf file (use "find . -name 'smb.conf' from a terminal window to find it) you can use the following lines:

force user = username


force group = groupname

Replace username and groupname with suitable values. Be sure to put these tage in the [share section] that you are using. The 'force group' option would work well with Joey's suggestion. Be sure to restart samba when you are done.

-J. Random

J. Random
Domain Administrator
JANDE Computing, LLC
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 23rd June 2018 - 06:51 PM