LinuxQuestions.org
Help answer threads with 0 replies.
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 07-31-2009, 05:32 AM   #1
mbanwi
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Rep: Reputation: 0
useradd problem


hi
i added a new user(elisha) to one of my servers running centOS 5 when i try to login to remotely through ssh using that new users account i get this funny login page always displayng:





Could not chdir to home directory /home/elisha: Permission denied
-bash: /home/elisha/.bash_profile: Permission denied
-bash-3.2$
 
Old 07-31-2009, 05:35 AM   #2
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
It's telling you what the problem is - elisha doesn't have permissions on her (sounds feminine, apologies if I'm wrong) homedir and its contents. `ls -l /home/elisha` and that file in it, and use chown with the -R option (read `man chmod`) to fix the ownership.
 
Old 08-03-2009, 07:56 AM   #3
mbanwi
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Original Poster
Rep: Reputation: 0
sir, i used this command below but it didn't still work.thesame message still keeps poping up, when i login with that account.


chown -hR /home/bate
 
Old 08-03-2009, 08:00 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
try
root# chown -R elisha:elisha /home/elisha

Thanks
 
Old 08-03-2009, 08:03 AM   #5
premchand
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
pls first check ur firewall is enabled if so u need to add the ftp port to allow the user to access
 
Old 08-03-2009, 10:24 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by premchand View Post
pls first check ur firewall is enabled if so u need to add the ftp port to allow the user to access
Topic starter is talking about SSH so I'm missing the link to ftp. Further there is a prompt so I doubt it is a firewall setting.
 
  


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
useradd -p problem john83reuben Linux - Security 3 02-21-2008 07:35 AM
Useradd problem Detroit5 Linux - General 4 04-25-2006 04:24 AM
Useradd - Cannot locate /etc/default/useradd in Solaris Paean Solaris / OpenSolaris 4 12-09-2005 02:36 AM
useradd Problem deepakjena_2003 Linux - Newbie 2 01-19-2004 09:21 AM
useradd problem scatcat Linux - Newbie 3 06-21-2002 04:33 AM


All times are GMT -5. The time now is 04:31 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