View previous topic :: View next topic |
Author |
Message |
steelbeak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/37791051840860cc816d2b.gif)
Joined: 06 Apr 2004 Posts: 30
|
Posted: Wed Nov 03, 2004 5:04 pm Post subject: How do I change local shell for domain users? |
|
|
I've got a Samba/Winbind machine on a Win2k3 AD domain.
In my /etc/samba/smb.conf I have template shell set to /bin/false to block shell access for domain users.
What I would like to do is provide shell access to a specific set of domain users, but keep everyone else with /bin/false.
How do I change the shell of individual domain accounts for my local box? usermod doesn't work because it only mucks about with /etc/passwd and domain accounts aren't stored there.
wbinfo seems to have options to created/delete local users and groups, but I'm really not sure what that's for. wbinfo doesn't alter /etc/passwd or /etc/group and it seems I can add users with wbinfo -c that are non-existing domain accounts. ... I really don't understand what that's all for.
So at the very least, an explanation on what wbinfo's user/group functions are all about would be appreciated.
But I'd really like to know how I can change the local shell value for specific domain accounts.
Thanks,
-Sb |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Wed Nov 03, 2004 5:47 pm Post subject: |
|
|
I think the create group and user functions of winbind are for creating local samba users and groups when you are using winbind. The accounts aren't added to /etc/passwd because they are only virtual accounts like the winbind domain accounts. They belong to the computer name domain.
As far as I know all users are given the template shell and there is no way to change it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Gentree Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/1364161114417d616b9645b.jpg)
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Nov 04, 2004 3:07 am Post subject: |
|
|
Is this what you are looking for in /etc/samba/smb.conf ?
Code: | # if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
|
HTH ![Cool 8)](images/smiles/icon_cool.gif) _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|