LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2007, 09:12 AM   #1
m2azer
Member
 
Registered: Sep 2004
Location: USA
Distribution: red hat, fedora & centos
Posts: 202

Rep: Reputation: 30
Deny shell logon with getent


I have Samba 3.0 running on SuSE 9.0 using winbindd to
authenticate my users. Everthing works properly. I
have set the template shell for winbind to /bin/false
as I don't want to give everyone shell access to the
server.

However, there are some users that require shell
access. How can I set a real shell for those domain
users that need a shell on the machine ? What's the
procedure for overriding the winbind default of /bin
false for selected users?

I am wondering if there is an option to assign different shells to
specific users in a winbind setup. As far as I can see, the template shell
option is an "all or nothing" scenario. Is this the case?

Last edited by m2azer; 01-18-2007 at 09:34 AM.
 
Old 01-21-2007, 12:19 PM   #2
zmanea
Member
 
Registered: Sep 2003
Location: Colorado
Posts: 85

Rep: Reputation: 15
I do not know much about winbindd but I would suspect that it only writes the shell information when you create an account. If this is true then you can use the following command to change the users shell:

chsh username <change username to users username>
 
Old 01-22-2007, 08:50 AM   #3
m2azer
Member
 
Registered: Sep 2004
Location: USA
Distribution: red hat, fedora & centos
Posts: 202

Original Poster
Rep: Reputation: 30
Thank you for the reply

chsh -s /bin/false cat
chsh: can only change local entries; use ypchsh instead.

ypchsh cat
ypchsh: can't get local yp domain: Local domain name not set

thanks
 
Old 02-20-2007, 09:18 AM   #4
m2azer
Member
 
Registered: Sep 2004
Location: USA
Distribution: red hat, fedora & centos
Posts: 202

Original Poster
Rep: Reputation: 30
solution is to copy the output of "getent user" to /etc/passwd then change the user shell to nologin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nss_ldap not working (getent passwd) WindowBreaker Slackware 2 06-27-2006 02:19 AM
Run Shell Script on logon thesystem Debian 2 10-20-2005 11:11 AM
never_direct deny all vs. always_direct deny all simplyrahul Linux - General 1 02-16-2005 02:42 PM
getent passwd and wibinfo -u not working bahadur Linux - Networking 0 06-14-2004 12:20 AM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration