LinuxQuestions.org
Visit Jeremy's Blog.
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 05-10-2012, 01: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, 01:28 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
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, 01: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, 02:18 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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



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

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

All times are GMT -5. The time now is 06:37 PM.

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