LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dissallow user account logins..?? (https://www.linuxquestions.org/questions/linux-newbie-8/dissallow-user-account-logins-352423/)

snip128 08-12-2005 01:37 AM

dissallow user account logins..??
 
well, i treid solving this one on my own by googling it and i came accross another post on linuxquestions.org and wellllll....it KINDA worked..it actually made another problem...but anyway, im trying to set up ftp with pure-ftp on debian linux and i got so close to being done...then i noticed that the users i was making for the ftp accounts could actually log onto the server....so i need to have them able to logon to the ftp srever, but not be able to have an interactive login, like htrough ssh, on the actual server, etc...

heres the post i (sorta) read...

http://www.linuxquestions.org/questi...threadid=17601

anyway, i followed this part on the page

Code:

Adding a user:
[root@fire root]# adduser ftptester
[root@fire root]# passwd ftptester
#dissallow shell login
[root@fire root]# chsh -s /sbin/nologin ftptester

anyway, now i those users cant logon to the server...great! guess what? they cant log onto the ftp server either! so! basically, i need to know how to restore those logon rights, then ban them from local and ssh logons...

i dont know what other info you need...so if u need anything, just ask and ill reply as soon as i can (assuming i dont fall asleep)

Ephracis 08-12-2005 02:07 AM

It seems that your ftpserver uses the default shell for the user. Since you did not tell what ftp server you use I am not sure though.

You can just edit /etc/passwd as root and change default shell to /bin/bash and it should work.

After this you will have to check on how to prevent local/ssh logons, I recall reading about that in a book once but can't remember.


All times are GMT -5. The time now is 10:23 PM.