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 05-10-2012, 02:24 PM   #1
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
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.
 
Old 05-10-2012, 02:28 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Which Linux distribution are you using?
How did you add the new user? Gui? From a terminal? What command did you use?
 
Old 05-10-2012, 02:33 PM   #3
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by yancek View Post
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
 
Old 05-10-2012, 03:18 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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.
 
  


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
cannot restore segment prot after reloc: Permission denied HarryBoy Linux - Newbie 1 11-25-2009 08:11 AM
Acroread: libJP2K.so: cannot restore segment prot after reloc: Permission denied pavodive Linux - Security 8 02-25-2009 02:52 PM
udevd - rmdir(/dev/.udev/failed) failed: Permission denied pbhj Slackware 20 03-21-2008 11:46 AM
Failed to send mail : Write failed : Permission denied shawnbishop Linux - Software 1 03-27-2006 02:50 PM
php failed: Permission denied (13) in rino.caldelli Linux - Software 2 03-18-2006 12:25 PM


All times are GMT -5. The time now is 01: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration