Results 1 to 10 of 14
My username is in the "users" group in /etc/passwd.
I am a member of "groupx" in the /etc/group file.
Here is the very basics that I am using right now:
...
- 01-15-2003 #1Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
Samba Subdirectories
My username is in the "users" group in /etc/passwd.
I am a member of "groupx" in the /etc/group file.
Here is the very basics that I am using right now:
[public]
path = /home/public
writable = yes
# ls -l /home/public/
total 20
drwxrwx--- 2 root groupx 4096 Jan 14 15:54 priv
Why is it that when I try to access "priv" I am denied?
Does Samba not understand that I am in the "groupx"?
Is there a config option that I can use that might help?
PS- My goal is to have a single share that has various
subdirectories for every company department, and it
should provide access to only their group. Unless we
feel the need to give the world "read" to the directory.
(Which we do have plans for so folks can share files.)
- 01-15-2003 #2Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Can you paste your smb.conf so I can take a look at it?
- 01-15-2003 #3Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
[global]
workgroup = WORKGROUP
server string = Samba
hosts allow = 10.0.1.
encrypt passwords = yes
local master = yes
dns proxy = no
log file = /var/log/samba/%m.log
security = user
[public]
browseable = yes
path = /home/public
public = yes
writable = yes
create mode = 0660
directory mode = 0770
- 01-15-2003 #4Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
What exactly is "priv"? I don't see a share for that setup.
- 01-15-2003 #5Linux User
- Join Date
- Jul 2002
- Location
- Daytona Beach, FL
- Posts
- 487
add these lines to the share
valid users = @groupx
write list = @groupx
i share a documents folder like this, usable only by group test
[documents]
comment = My Documents
browsable = yes
write list = @test
path = /documents
valid users = @test
directory mode = 0770
createmode = 0660
writable = yesmajorwoo
Quiet brain, or I\'ll stab you with a Q-tip.
- 01-15-2003 #6Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
"priv" is not a share, it is a subdirectory.
Originally Posted by genlee
I was trying to see if I could setup subdirectories
for each group under one share, instead of going
with a ton of shares. Then, someone like myself
in the IT department, can have 1 mapping instead
of like 10 or something. Not possible?
- 01-15-2003 #7Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
I would recommend seperate shares for this. It isn't a good idea to have other groups access to each others documents.
- 01-15-2003 #8Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
I was using Linux's group permissions, which would
allow "no access" unless you are within the certain
groups. Works well under Linux, but I suppose this
Samba does not fully support Linux group perms...
- 01-15-2003 #9Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
It's probably because samba doesn't fully understand unix logins. My suggestion would be to add that support to the samba source and post back a patch to samba.org so that everyone can benefit.
- 01-16-2003 #10Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Group permissions must be seet in the smb.conf itself. Remember samba has its own passwd and doesn't use the systems. Though you can have samba sync its paswords with the system passwords.



