Bugzilla – Bug 8160
0.9.3 installer doesnt install /etc/shells
Last modified: 2005-10-21 14:57:10 UTC
0.9.3 installer doesnt install /etc/shells, this causes problems with programs that refuse to let you log in without an entry in /etc/shells (such as kdm). /etc/shells is a fairly standard unix/linux file and should exist for new installs.
Is there a spell installing this file or should the installer take care of it? How did you create this file in your existing sourcemage system? Benoit PAPILLAULT
a quick grep of /var/log/sorcery/install would tell you that no one owns /etc/shells, so therefore the old installers must have been putting it there.
1. A quick "gaze from /etc/shells" show me that none of the spells currently installed on my system own this file. Since you reported the bug, I thought you knew what spell I should use. That's why I was asking you. 2. Which old installer are you refering to, in order to have a look at it? Benoit PAPILLAULT, ISO guru
I dont know when installers stopped creating /etc/shells, I dont have systems from every version of the installer to check for you, i have an 0.8 install that doesnt have it, and a really really old install from 2002 that does, but maybe i made the file myself and forgot since it was so long ago (i probably thought it was a bug back then too). Perhaps none of the installers ever created this and everyone who's used kdm or other programs that check it have been smart enough to add create it. Just curious is it difficult to add one more file to the list of untracked /etc files that contains /bin/bash /bin/sh You can always appeal to the mailing list if you dont think the installer should do this.
I was trying to understand your bug with accuracy. Since none of us knows which installer creates /etc/shells, we cannot refer to it. I just read the getusershell man page and it says that an empty /etc/shells is treated like "/bin/sh + /bin/csh". Thus, /bin/bash is the only difference. It's not difficult to create this file from the installer. However, i'd like to know the proper way to generate this file. If its content is fixed, we could create a spell to hold it (like we do for iana-etc). If its content is to record shell installed, maybe it should be updated after casting each of those shells. Since this file is used for security purpose, I'll open a discussion on sm-discuss. Benoit PAPILLAULT, ISO guru
OK. The ISO will create a file /etc/shells containing only: /bin/sh /bin/bash Benoit PAPILLAULT, ISO guru
noted this to be fixed in the new installer too
is it fixed yet? --
Let's call it fixed. --