Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I change local shell for domain users?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
steelbeak
n00b
n00b


Joined: 06 Apr 2004
Posts: 30

PostPosted: Wed Nov 03, 2004 5:04 pm    Post subject: How do I change local shell for domain users? Reply with quote

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
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Wed Nov 03, 2004 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu Nov 04, 2004 3:07 am    Post subject: Reply with quote

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 8)
_________________
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum