LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2005, 02:37 AM   #1
snip128
Member
 
Registered: Jan 2004
Location: Delaware
Distribution: gentoo
Posts: 96

Rep: Reputation: 15
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)
 
Old 08-12-2005, 03:07 AM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
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.

Last edited by Ephracis; 08-12-2005 at 03:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 08:49 PM
Different user logins, different issues gmgartner Slackware 4 04-21-2005 08:42 PM
restrict ssh logins by ip by user account Beans0063 Linux - Security 4 10-04-2004 02:29 PM
Restriction on user logins klmn1 Linux - Networking 2 05-26-2003 06:40 AM
User Logins TerminalPhreak Linux - Newbie 3 02-28-2003 02:56 PM


All times are GMT -5. The time now is 04:25 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration