i logged in as root user and create a new user and set the password. But i am unable to switch to the newly created user.

What is the permission problem of .bashrc file with root user?

# adduser -m praveen
# passwd praveen
<password set>

# su praveen
bash: /home/monitor/praveen/.bashrc: Permission denied

# ls -al /home/monitor/praveen
-rw-r--r-- 1 praveen praveen  124 Jul 28 07:41 .bashrc
link|improve this question

feedback

2 Answers

up vote 0 down vote accepted

/home/monitor was not in permission list of user praveen. Adding it fixed the problem.

link|improve this answer
feedback

Your .bashrc is not executable.

link|improve this answer
1  
.bashrc is never executed either; it is only sourced. If ~praveen/.*profile attempts to execute it, it's misconfigured. – grawity Dec 19 '11 at 21:31
@Gryllida: I believe you mean the gray ✓. – Hello71 Dec 20 '11 at 1:52
You should post this as an answer, not as a comment, including a detailed description of how you resolved the problem. Then tick the grey "\/" at the left of your answer to indicate that the problem is solved. – Gryllida Dec 20 '11 at 2:02
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.