morla
02-12-2012, 08:47
здравствуйте!
задача: создать папки. раздать права пользователям
есть папки:
shares/office/
shares/office/buh/
shares/office/buh/mainbuh
shares/office/buh/buh1
shares/office/buh/buh2
shares/office/const
shares/office/const/const1
shares/office/constconst2
shares/office/director
shares/office/pr
есть пользователи:
mainadmin (права на всё в shares)
director (права на всё в office)
mainbuh (права на всё в buh)
buh1 (права на всё в buh1)
buh2 (права на всё в buh2)
const1 (права на всё в const1)
const2 (права на всё в const2)
pr (права на всё в pr)
1. создал группу office
2. создал пользовалетей/задал пароли (mainadmin, director, mainbuh, buh1, buh2, const1, const2, pr)
3. добавил пользователей в smbpasswd
4. создал директории
5. написал конфиг smb.conf
[global]
workgroup = HOMENET
netbios name = fileserver
server string = File Server on Debian
security = share
[office-buh]
path = /home/morla/shares/office/buh
valid users = mainadmin, director, mainbuh
read only = no
force group = office
[office-buh-main_buh]
path = /home/morla/shares/office/buh/main_buh
valid users = mainadmin, director, mainbuh
read only = no
force group = office
[office-buh-buh1]
path = /home/morla/shares/office/buh/buh1
valid users = mainadmin, director, mainbuh, buh1
read only = no
force group = office
[office-buh-buh2]
path = /home/morla/shares/office/buh/buh2
valid users = mainadmin, director, mainbuh, buh2
read only = no
force group = office
[office-const]
path = /home/morla/shares/office/const
valid users = mainadmin, director
read only = no
force group = office
[office-const-const1]
path = /home/morla/shares/office/const/const1
valid users = mainadmin, director, const1
read only = no
force group = office
[office-const-const2]
path = /home/morla/shares/office/const/const2
valid users = mainadmin, director, const2
read only = no
force group = office
[office-director]
path = /home/morla/shares/office/director
valid users = mainadmin, director
read only = no
force group = office
[office-pr]
path = /home/morla/shares/office/pr
valid users = mainadmin, director, pr
read only = no
force group = office
6. создал пользователей на раб. станциях windows (mainadmin, director, mainbuh, buh1, buh2, const1, const2, pr)
проблема заключается в том, что когда подключаюсь mainadmin'ом, то все ОК. но когда дело доходит до других пользователей, то начинаются непонятки. меня система просит ввести логин/пароль. ввожу, но ни куда не пускает. в чем может быть проблема?
все ли параметры указал?
можно ли эту задачу решить более утанченно?
можно ли админить сеть с 50-60 раб. станциями с помощью samba + dhcp + dns? и нужно ли это делать когда есть ad ds?
заранее спасибо.
задача: создать папки. раздать права пользователям
есть папки:
shares/office/
shares/office/buh/
shares/office/buh/mainbuh
shares/office/buh/buh1
shares/office/buh/buh2
shares/office/const
shares/office/const/const1
shares/office/constconst2
shares/office/director
shares/office/pr
есть пользователи:
mainadmin (права на всё в shares)
director (права на всё в office)
mainbuh (права на всё в buh)
buh1 (права на всё в buh1)
buh2 (права на всё в buh2)
const1 (права на всё в const1)
const2 (права на всё в const2)
pr (права на всё в pr)
1. создал группу office
2. создал пользовалетей/задал пароли (mainadmin, director, mainbuh, buh1, buh2, const1, const2, pr)
3. добавил пользователей в smbpasswd
4. создал директории
5. написал конфиг smb.conf
[global]
workgroup = HOMENET
netbios name = fileserver
server string = File Server on Debian
security = share
[office-buh]
path = /home/morla/shares/office/buh
valid users = mainadmin, director, mainbuh
read only = no
force group = office
[office-buh-main_buh]
path = /home/morla/shares/office/buh/main_buh
valid users = mainadmin, director, mainbuh
read only = no
force group = office
[office-buh-buh1]
path = /home/morla/shares/office/buh/buh1
valid users = mainadmin, director, mainbuh, buh1
read only = no
force group = office
[office-buh-buh2]
path = /home/morla/shares/office/buh/buh2
valid users = mainadmin, director, mainbuh, buh2
read only = no
force group = office
[office-const]
path = /home/morla/shares/office/const
valid users = mainadmin, director
read only = no
force group = office
[office-const-const1]
path = /home/morla/shares/office/const/const1
valid users = mainadmin, director, const1
read only = no
force group = office
[office-const-const2]
path = /home/morla/shares/office/const/const2
valid users = mainadmin, director, const2
read only = no
force group = office
[office-director]
path = /home/morla/shares/office/director
valid users = mainadmin, director
read only = no
force group = office
[office-pr]
path = /home/morla/shares/office/pr
valid users = mainadmin, director, pr
read only = no
force group = office
6. создал пользователей на раб. станциях windows (mainadmin, director, mainbuh, buh1, buh2, const1, const2, pr)
проблема заключается в том, что когда подключаюсь mainadmin'ом, то все ОК. но когда дело доходит до других пользователей, то начинаются непонятки. меня система просит ввести логин/пароль. ввожу, но ни куда не пускает. в чем может быть проблема?
все ли параметры указал?
можно ли эту задачу решить более утанченно?
можно ли админить сеть с 50-60 раб. станциями с помощью samba + dhcp + dns? и нужно ли это делать когда есть ad ds?
заранее спасибо.