LinuxQuestions.org
Help answer threads with 0 replies.
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 08-12-2003, 01:50 AM   #1
schaf
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Question Samba and access rights


Hi

I've got a Samba 2.2.3a on a suse 8.0 machine. There ist a folder 'user' which is mapped to every xp-client logging into samba (via netlogon the folder is mapped to the xp-clients). so far everything works fine. Now, if the user 'test' has logged on his computer and creates a folder 'testfolder' on the share 'user', he is the owner of this folder. Other users that are in the same group as 'test' can read and execute, but not write. I'd like everybody who's in the same group as 'test' to be able to read/write/execute things.
How can i get this work? any ideas?

thx
schaf
 
Old 08-14-2003, 09:19 AM   #2
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
Hello.

On idea may be to allow the share to be written to. So in the

[user]

section of the smb.conf file, you may add the following:

[user]
read only = no
writeable = yes

This would allow writability but would not solve your access problem. To allow a group to access a samba share, I believe you must first change the group of the share folder to the "test group".

if the share [user] were located at

/export/samba/windows

then you could do a

chgrp testgroup /export/samba/windows
chmod 770 /export/samba/windows

That would solve the Linux permission problem assuming that all the users in the group "testgroup" were registered as such in the

/etc/group

file. Samba seems to get all of its permission information either directly or indirectly from the /etc/group file or the /etc/passwd file. Then you should be able to specify that this group is a valid user for the share by adding another line:

[user]
...
...
read only = no
writeable = yes
valid users = @testgroup
 
  


Reply


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
Access rights Noido Linux - Newbie 5 06-13-2005 04:36 PM
no access to devices with group access rights flipper333 Debian 2 12-28-2004 09:25 AM
Samba Access Rights esasse Linux - Newbie 6 12-22-2004 06:45 AM
Access Rights using Samba Nylix Linux - Newbie 1 05-14-2004 03:01 PM
Samba Access rights ppuddick Linux - Networking 2 07-17-2002 11:28 AM

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

All times are GMT -5. The time now is 04:50 PM.

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