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 09-19-2008, 02:23 AM   #1
marensius
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Rep: Reputation: 0
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)
 
Old 09-19-2008, 03:04 AM   #2
kuri0s
LQ Newbie
 
Registered: Mar 2008
Posts: 18

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


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
How does "motd" work? And how about "issue"? rm_-rf_windows Linux - General 8 07-01-2007 12:53 PM
/etc/issue and motd customization eth0g Linux - General 5 08-19-2006 12:41 AM
/etc/motd skate Linux - Software 5 05-03-2006 08:44 AM
Change prompt on FC1 (not motd or /etc/issue) ultreen144 Linux - Newbie 1 06-02-2004 10:56 AM
Is there any MOTD software available besides /etc/motd? csif Linux - Software 1 04-24-2004 06:36 AM


All times are GMT -5. The time now is 07:30 PM.

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