It should be safe to modify. It's used by getusershell() to retrieve a list of valid shells on the system. Note that the function is GetUserShell(), not GetUsersHell(), which is what you call right before GiveUsersHell() On Tue, 2004-03-09 at 10:03, Josh Close wrote: > It doesn't say anywhere about the user having to have a shell listed in > /etc/shells. Can I just add shells to /etc/shells? > > This is what the man page says: > > /etc/passwd is used via libc (and PAM is this case), to get the uid > and > home directory of normal users, the uid and home directory of "ftp" > for > normal anonymous ftp, and just the uid of "ftp" for virtual ftp > hosts. > > Nothing about the shell though. > > -Josh > > -----Original Message----- > From: Adam Maloney [mailto:adamm at sihope.com] > Sent: Tuesday, March 09, 2004 9:28 AM > To: josh at teamfreeze.com; TCLUG Mailing List > Subject: Re: [TCLUG] ftp users > > > Does the FTP daemon require them to have a valid shell (listed in > /etc/shells?) and /bin/false isn't? > > On Tue, 2004-03-09 at 09:16, Josh Close wrote: > > Is there a way to have an ftp user that's not able to log onto the box? I > > tried > > > > usermod -s /bin/false some-user > > usermod -s /bin/nobody some-user > > usermod -s /dev/null some-user > > > > All of those make it so there is a user with a pass that belong to a group > > and they can't ssh in, but they also can't get in with ftp. I'm using > > pure-ftpd. > > > > -Josh > > > > > > _______________________________________________ > > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > > http://www.mn-linux.org tclug-list at mn-linux.org > > https://mailman.real-time.com/mailman/listinfo/tclug-list > > > > > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > http://www.mn-linux.org tclug-list at mn-linux.org > https://mailman.real-time.com/mailman/listinfo/tclug-list > _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-list