Bug 65575

Summary: adding a user does not let you specify NO SHELL
Product: [Retired] Red Hat Linux Reporter: Joe Acosta <josepha48>
Component: redhat-config-usersAssignee: Brent Fox <bfox>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-01 02:09:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joe Acosta 2002-05-27 20:18:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510

Description of problem:
Add a user call it named.  The dialog does not let you specify /bin/nologin

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. add a new user
2. call it named (nobody, foo, xfs...etc)
3. try to change the login shell to /bin/nologin or /bin/false (like xfs)


Actual Results:  you cannot set the user to nologin

also it sets up a home directory path but you can change this

also it requires a password and should not


Expected Results:  It should let you enter in /bin/nologin for users that you do
not want an actual login for. I.E. nobody, named, xfs, foo, etc

Additional info:

in its current stat this is a worthless tool and should be fixed or replaced.

workaround is to user useradd..............

Comment 1 Brent Fox 2002-06-27 22:04:47 UTC
Actually, redhat-config-users queries libuser to see what shells are available.

        self.shells = self.parent.ADMIN.getUserShells()
        self.shells.sort()
        self.loginShellCombo.set_popdown_strings(self.shells)
        default = '/bin/bash'
        if default in self.shells:
            self.loginShellCombo.list.select_item(self.shells.index(default))

In 7.2 and 7.3, libuser did not return /bin/nologin as a valid shell choice, but
it currently does in our latest internal trees.  Actually, it's /sbin/nologin. 
But at any rate, the behavior in the next release should do what you want.  You
should be able to grab the latest packages out of Rawhide if you don't want to
wait for the next release.  Thanks for your report.