LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 30
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
 
Old 10-31-2006, 07:33 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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