Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba question 2

Status
Not open for further replies.

hereigns

MIS
Sep 17, 2002
172
US
Running RH 6.1 with samba 2.0.7, I know I know, I need to upgrade.

But...running a share and users can read the documents located within the share but when they save the file the owner and group changes to the them instead of the group specified within smb.conf.

I tried adding "force user and force group" within the smb.conf file and restarting smbd and nmbd still no luck.

Any ideas on how I can fix this problem (outside of upgrading) would be appreciated!
 
whats the section of your smb.conf look like that controls the particular share, and does any global entry override what the share level control tries to set ?


______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Good question, below is global and share portion of the smb.conf file. I just added the bottom 4 lines of the share but have not restarted smb since making the adjustment.


[global]
guest account = nobody
printing = bsd
debug level = 1
printcap name = /etc/printcap
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
share modes = yes
;security = share
security = domain
workgroup = mine
;wins support = true
wins server = 192.168.8.24
encrypt passwords = yes
netbios name = ezekiel
netbios aliases = doc usr
load printers = yes
preserve case = yes
oplocks = false
utmp = yes

password server = xyz

hosts allow = 192.168.8.
# amont of time before dropping idle connections
#deadtime = 1

# performance tuning
getwd cache = yes
read prediction = true

[documents]
comment = network documents
path = /raid/smb/doc
browseable = yes
write list = @users
read list = @users
read only = no
public = yes
guest = ok
create mode = 0774
directory mode = 6775
veto files = /*Ne*:/~$*.doc/
force create mode = 770
force group = @users
force user = user
force security mode = 0660
 
you need to restart smb to get the changes to take effect, you can run testparm to see what smb makes of your config.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
testparm runs fine, no errors. Restarted smb - still no dice. So, I adjusted these lines and restarted smb:

force create mode = 0777
force directory mode = 0777

which obviously temporarily fixes the problem since everyone has rwx. It makes me think there's something going on with user accounts and the group 'users'. I have double-checked the group and it does in-fact have all the appropriate users in the group. I even tried setting a different group and added accounts to it and ran into the same problem.

Stuck....
 
to keep the users with their own groups create mode should be 0765 iirc.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
If it still doesn't work change the follwing line

force group = @users

to

force group = users

and restart.



## Just because you can do something doesn't mean you should.

Lorenzo Wacondo (System Administrator)
 
IRudebwoy,
Sorry for the delay in responding...your suggestion seemed to do the trick, it's working like a champ now.

Thanks everyone for their efforts!

Merry Christmas!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top