LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Strange useradd behaviour ! (https://www.linuxquestions.org/questions/linux-newbie-8/strange-useradd-behaviour-865451/)

noony123 02-28-2011 05:47 AM

Strange useradd behaviour !
 
Hi all.

I performed the following steps

[root@Rancid ~]# useradd jon
[root@Rancid ~]# passwd jon
Changing password for user jon.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@Rancid ~]# su jon
[jon@Rancid root]$ ls
ls: .: Permission denied

[jon@Rancid root]$

Now its not a big issue, if i simply change the dir using cd everything starts to work fine. But i am just confused, is it some sort of bug ?

repo 02-28-2011 05:51 AM

Seems to me you are still in the root directory, and you need root permissions to see the content.

Kind regards

noony123 02-28-2011 06:46 AM

Thanks a lot, and sorry for asking such a dumb question. I should have looked more carefully :-(


All times are GMT -5. The time now is 03:34 PM.