Link to home
Start Free TrialLog in
Avatar of fcek
fcekFlag for Ireland

asked on

Fedora / Samba - n00b - how to give these two users write access to files the other creates in the "management" share?

If they originate the files they can read / write - but if they try to edit others docs they can only read.

What to do?


[ed@server1 users folders]$ su root
Password:
[root@server1 users folders]# mkdir management
[root@server1 users folders]# ls
admin-private  admin-public  management  test  users-personal
[root@server1 users folders]# chmod 777 management
[root@server1 users folders]# ls
admin-private  admin-public  management  test  users-personal
[root@server1 users folders]# service smb restart
Shutting down SMB services:                                [  OK  ]
Starting SMB services:                                     [  OK  ]
[root@server1 users folders]# cd management
[root@server1 management]# ls
clarewil.txt  tommyd.txt
[root@server1 management]# ls la
ls: cannot access la: No such file or directory
[root@server1 management]# ls -la
total 8
drwxrwxrwx  2 root     root   4096 Apr  4 15:34 .
drwxrwxrwx. 7 root     root   4096 Apr  4 15:31 ..
-rwxr--r--  1 clarewil public    0 Apr  4 15:33 clarewil.txt
-rwxr--r--  1 tommyd   public    0 Apr  4 15:34 tommyd.txt
[root@server1 management]#



ASKER CERTIFIED SOLUTION
Avatar of upanwar
upanwar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fcek

ASKER


smb.conf

Before:

[management]
      path = /users folders/management
      valid users = clarewil, ed, tommyd
      read only = No
      browseable = No

After:

[management]
      path = /users folders/management
      valid users = clarewil, ed, tommyd
      read only = No
      browseable = No
      create mask = 0775


============================ result is worse! ====================

[ed@server1 management]$ touch ed.txt
[ed@server1 management]$ ls
clarewil.txt  ed.txt  tommyd.txt
[ed@server1 management]$ ls -la
total 8
drwxrwxrwx  2 root     root   4096 Apr  4 22:57 .
drwxrwxrwx. 7 root     root   4096 Apr  4 15:31 ..
-rwxr--r--  1 clarewil public    0 Apr  4 15:33 clarewil.txt
-rw-r--r--  1 ed       public    0 Apr  4 22:57 ed.txt
-rwxr--r--  1 tommyd   public    0 Apr  4 15:34 tommyd.txt
[ed@server1 management]$

===================================================

Do I create a "group" and add the three people to it?
FYI - I already have a group called "public" and everyone is a member of it.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fcek

ASKER


Hi upanwar.  To explain this better.

Share "Public"
Group "public" - Everyone is a member of it.  It works fine.

New share: Management.
I want three people to have full access but everyone else not to be able to see it.

Do I have to create a group called "management" and put @management in samba so all have equal rights to read/write/execute?


yes thats correct and your three users should belongs to new group.
Avatar of fcek

ASKER



Sounds logical and doesnt sound too difficult.  Will give it a try tonight in the early hours after my day work is done.