LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   find: failed to restore initial working directory: Permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/find-failed-to-restore-initial-working-directory-permission-denied-944269/)

fachhoch@gmail.com 05-10-2012 01:24 PM

find: failed to restore initial working directory: Permission denied
 
I tried adding a new user when I try to do su user I see this error
Code:

find: failed to restore initial working directory: Permission denied
what it means and how to fix this.

yancek 05-10-2012 01:28 PM

Which Linux distribution are you using?
How did you add the new user? Gui? From a terminal? What command did you use?

fachhoch@gmail.com 05-10-2012 01:33 PM

Quote:

Originally Posted by yancek (Post 4675300)
Which Linux distribution are you using?
How did you add the new user? Gui? From a terminal? What command did you use?

I am using amzon linux in aws cloud.

I added user using adduser from terminal

Kustom42 05-10-2012 02:18 PM

Run the following:

Code:

for folder in `grep 'username' /etc/passwd | cut -d: -f6`; do stat $folder; done
In the output you should see a line with Access and the octal perms of th efolder, as well as the UID and GID of the folder next to it. Make sure the uid and gid are the users and that the octal perms have at least 0700 or better.


All times are GMT -5. The time now is 08:01 AM.