I am running centos 5.5 with samba Version 3.0.33-3.28.el5.
My server type is share since the office users want to be able to browse the file server without any username and passwords.
But now i need to create a share on there that requires user authentication, the finance share.
here is my full config
Code:
[global]
netbios name = mps
cups options = raw
load printers = yes
server string = Telecom2 Filer Server
workgroup = workgroup
os level = 20
encrypt passwords = yes
security = share
passdb backend = tdbsam
[homes]
comment = Home Directories
browseable = no
writeable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[Media]
comment = Media Folder
path = /var/lib/backuppc/share/media
public = yes
writable = yes
printable = no
[public]
comment = All Users Share
path = /var/lib/backuppc/share/public
public = yes
writable = yes
printable = no
[Documents]
comment = Document Folders
writeable = yes
public = yes
path = /var/lib/backuppc/share/documents
[Backups]
comment = Backups folder
writeable = yes
public = yes
path = /var/lib/backuppc/share/backups
[finance]
comment = Finance Share
printable = no
path = /var/lib/backuppc/share/finance
valid users = @finance
force group = finance
writable = yes
create mask = 0660
directory mask = 0771
I have added myself to the smbpasswd. and am part of the group finance
Code:
[root@mps share]# smbpasswd -a athiq
New SMB password:
Retype new SMB password:
[root@mps share]# id -G -n athiq
athiq finance
But when I try to login it does not authenticate. keeps prompting me for username and password.
I tried do change server type to user, but in this case everyone has to enter a username and password, which is not what i want to do.
Thanks