Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-29-2006, 06:08 PM   #1
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
samba sharing


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.

Old 10-31-2006, 07:33 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,506

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

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Sharing via Samba Jongi Linux - Networking 4 04-27-2006 10:33 AM
Samba Sharing Die Woud Linux - Networking 14 05-06-2005 03:54 PM
Sharing / via samba: How? crxgames SUSE / openSUSE 2 03-14-2005 02:54 PM
Sharing with samba deigote Linux - Software 1 10-13-2003 06:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration