LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot Shared Folders with different rights using samba (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-shared-folders-with-different-rights-using-samba-656272/)

shebatuni 07-16-2008 11:00 PM

Cannot Shared Folders with different rights using samba
 
I am a new guy in Linux system. I have set up Fedora 7 and shared folders using Samba.For the first time , I can assign folder A with user John,Alice with read and write rights. Then I create another share folder with Baker with right of read only to the same folder(folder A).
1) Now I should have Share A Folder with John and Alice - read and write
2) Second Share A with Baker with read only rights

After a few secinds, the both share changes the rights to read only.I am puzzled by this. Can anyone help me in this.
Please help me...

stress_junkie 07-17-2008 07:01 PM

You cannot create a second share of the same folder. You must put all of the users in the configuration of one share per folder. Here is some code from my Samba template file that has parts that you could use to accomplish your goal.
Code:

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;  comment = Public Stuff
;  path = /home/samba/public
;  public = yes
;  writable = no
;  write list = @staff
# Audited directory through experimental VFS audit.so module:
# Uncomment next line.
#  vfs object = /usr/lib/samba/vfs/audit.so

Instead of "staff" you could have a group that has John and Alice as members. If you think about it a little bit and experiment a little bit you should soon have a samba.conf section that will create the share with the characteristics that you want.


All times are GMT -5. The time now is 10:49 PM.