LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-14-2018, 12:36 AM   #1
mahendrakumar
LQ Newbie
 
Registered: Apr 2018
Posts: 3

Rep: Reputation: Disabled
cannot change directory to /home/user: Permission denied


Hai Guys,

I was created new user with password and while am tried to login that user as super user am facing the below error.

- Error
su - user
Last login: Tue Aug 14 10:44:34 PDT 2018 on pts/0
su: warning: cannot change directory to /home/user : Permission denied
-bash: /home/Expired/.bash_profile: Permission denied
-bash-4.2$

Thanks&Regards,
Mahendra Kumar V

Last edited by mahendrakumar; 08-14-2018 at 12:37 AM.
 
Old 08-14-2018, 01:07 AM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Can you clarify? Are you trying to "su" to the newly created user? Or are you just trying to login as the newly created user? Have you checked permissions of the new users home directory?
Code:
ls -l /home
If it is not owned by the user
Code:
chown -R username:username /home/username
Also, if you can put any terminal output in [code] [/code] tags, it makes it much more readable
 
  


Reply



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
[SOLVED] 'Could not chdir to home directory /home/[user]: Permission denied' arashi256 Linux - Newbie 25 11-11-2011 09:29 AM
cannot change directory to /home/oracle: Permission denied nbeayni Linux - Newbie 14 11-08-2010 09:38 AM
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 04:12 PM
Crontab permission denied while making a directory in user's home Dfangs Linux - Server 3 05-29-2009 09:44 AM
permission denied to home directory ekdya Debian 3 11-08-2005 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration