LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   motd issue and fakeuser (https://www.linuxquestions.org/questions/linux-newbie-8/motd-issue-and-fakeuser-670979/)

marensius 09-19-2008 02:23 AM

motd issue and fakeuser
 
Hello, I have 2 questions atm.

first is, when i add echo commands to the /etc/motd file and try to
relogg I get this

PHP Code:

Last loginFri Sep 19 09:08:02 2008 from 192.168.1.101
#!/bin/bash
echo -"\033[1;30m.--------------------------------------------------"
echo --"\033[1;30m| " 

I have edited # to the /etc/rc.d/rc.S file so that
I dont get the random login message. However I wounder
why it prints out echo -e instead of just doing as it should
be doing. Im using latest Slackware.

And for my second question, I would like to add an
fakeuser to be able to connect to my ftp, however
when I use the command
PHP Code:

useradd userftp -p your_password -/home/FTP-shared -/bin/false 

and try to login I just get "wrong username or password" eventhough
im certan that im typing in right one.
(I want an username without shell access)

kuri0s 09-19-2008 03:04 AM

No idea about the echo, maybe reinstalling latest bash version fixes that.

If you man useradd, you will find out that -p hash is the correct syntax. Create without password and later do passwd if you don't have de hash yet. If you want that user not to be able to log in trough ssh, try DenyUsers option in ssh configuration file: sshd_config. (check man sshd_config for more details).


Have a nice day.


All times are GMT -5. The time now is 08:59 PM.