How to set permissions correctly ?

Stephan Lauffer lauffer at ph-freiburg.de
Tue Jun 20 09:53:06 GMT 2000


Hi Matthias!

Have a look at 
username = usera, userb (...)
and 
force user = unix_user
force group  = unix_group

With the combination of this parameters you should be able to to a lot of nice 
things.

Example with a webserver:

[wwwroot]
        comment = WWW-Root
        path = /usr/local/httpd/htdocs
	only user = Yes
        browsable = No
	# windows-users: 
	username = duffner, nagel, lauffer
	# unix user:
	force user = wwwrun
	force group = nogroup
[wwwservice]
        comment = WWW-Service
        path = /usr/local/httpd/htdocs/service
	only user = Yes
        browsable = No
	# windows-users: 
	username = lauffer, walz
	# unix user
	force user = wwwservice
	force group = nogroup

Remember, it´s just an example!
if you dont have local accounts for windows users, you´re able to
check the accounts with another PDC:

[global]
	# our pdc
	password server = wwwpdc

But you can do several other things... just have a look to the man pages
from force... username... username map... valid users... and invalid users...

"Using Samba", one of the many book around samba, is online availabe!
Have a look at:
http://www.oreilly.com/catalog/samba/chapter/book/index.html
Chapter 6 is what you need! ;-)

Liebe Gruesse,
Stephan Lauffer

[ Paedagogische Hochschule Freiburg - Systemtechnik - Germany    ]
[ Abteilung ZIK: <a href="http://www.ph-freiburg.de/zik">WWW</a> ]
[ Tel.: 0761 - 682 459                    Mobil: 0172 - 7145 197 ]



More information about the samba-ntdom mailing list