smb.conf
2 отговора
218 прегледа
smb.conf
От два дена ръчкам самбата и почти я настроих по мой вкус. Но едно нещо още ми се опъва. Как да направя споделения ресурс да се ползва само от конкретени юзъри, а не от всички потребители, обявени в smbpasswd? Имам едно предположение. В [global] секцията съществува следния ред: invalid users = root, който забранява на root да ползва споделените ресурси. По принцип такава ли е практиката?
Re: smb.conf
Зная google.com перфектно. Досега как мислиш съм се оправял? Точно от HOWTO-то, което посочи, съм чел и там не намерих отговор.
Този ред в моя smb.conf беше по-подразбиране:
[ global ]
security = user
В конфигурационния файл пише, че е добре да бъде така, т.е. да се оторизираш с потребителско име и парола.
Но такъв пример:
[ share ]
valid users = username
нямаше нито там, нито в HOWTO-то.
Това иначе го има @groupname и го знам. Ако бъдеш по-възпитам, можеш да бъдеш много по-полезен.
Този ред в моя smb.conf беше по-подразбиране:
[ global ]
security = user
В конфигурационния файл пише, че е добре да бъде така, т.е. да се оторизираш с потребителско име и парола.
Но такъв пример:
[ share ]
valid users = username
нямаше нито там, нито в HOWTO-то.
Това иначе го има @groupname и го знам. Ако бъдеш по-възпитам, можеш да бъдеш много по-полезен.
Re: smb.conf
Даже не ти е нужен гугъл ...
man smb.conf:
valid users (S)
This is a list of users that should be allowed to login to this
service. Names starting with '@', '+' and '&' are interpreted
using the same rules as described in the invalid users parame-
ter.
If this is empty (the default) then any user can login. If a
username is in both this list and the invalid users list then
access is denied for that user.
The current servicename is substituted for %S . This is useful
in the [homes] section.
Default: valid users = # No valid users list (anyone can login)
Example: valid users = greg, @pcusers
man smb.conf:
valid users (S)
This is a list of users that should be allowed to login to this
service. Names starting with '@', '+' and '&' are interpreted
using the same rules as described in the invalid users parame-
ter.
If this is empty (the default) then any user can login. If a
username is in both this list and the invalid users list then
access is denied for that user.
The current servicename is substituted for %S . This is useful
in the [homes] section.
Default: valid users = # No valid users list (anyone can login)
Example: valid users = greg, @pcusers