LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba sharing (https://www.linuxquestions.org/questions/linux-newbie-8/samba-sharing-496727/)

CloudBuilder 10-29-2006 06:08 PM

samba sharing
 
Hello,

I have succeeded in getting my samba server working (for some time), that is to say, it functions for root and users in the root group. Until now only root was using the server but now I want to make copies from critical files from some Win users to the server just in case...... This has to be done without interaction from the user. Until now I did this on a simple fileserver with windows and that worked fine. But on the linux server that is intended to replace the win server (old amd 500 with win98), I have lots of space so I want to replace the win machine.

In my case I have four shares called drvd drve drvf drvg. This are actually 4 (vfat) drives.
What I want is to give user 1 only access to drvd user 2 only access to drve etc.

I tried simple file sharing but that doesn't work. If I change the group for one share, then all other shares are also changed. Advanced also doesn't work this way, it changes the group or user for all shares when I make a change in group or users.

Obviously I am missing something. I looked in some books, googled a lot, crashed samba a view times but nothing seems to help.

Can anybody give me some hints?

Thanks in advance.

CloudBuilder

rylan76 10-31-2006 07:33 AM

Have you tried this in your smb.conf file, when specifying a share:

[shared_backups]
path = /usr/local/company_share
guest ok = no
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes
username = yzelle jeremy stefan jean
read list = yzelle jeremy
write list = stefan jean
valid users = yzelle jeremy stefan jean

I. e. only the samba users listed above in the relevant list will be able to do the relevant things... thus you don't use user groups in Linux to limit access. I. e. in the above share config, only Yzelle and Jeremy will be able to read, and only Stefan and Jean will be able to write... - get the idea? You can set this up for each share any way you want. Did you try this? Note that the username used above are NOT Linux usernames, they are Samba usernames created using smbpasswd.


All times are GMT -5. The time now is 02:40 PM.