Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What could have happened to my permissions?

Status
Not open for further replies.

OsakaWebbie

Programmer
Feb 11, 2003
628
JP
Suddenly my development user can't write its own files - what did I mess up? I first noticed the problem in FTP, and used SSH to investigate. Here's a transcript that shows the situation:
Code:
[root@vps-1011517-5697 codebase]# grep ^dev /etc/passwd
dev:x:506:500::/var/[URL unfurl="true"]www/:/bin/bash[/URL]
[root@vps-1011517-5697 codebase]# su dev
bash-3.2$ whoami
dev
bash-3.2$ ls -l phpin*
-rw-r--r-- 1 dev kizunadb 65 Mar  6 11:43 phpinfo.php
bash-3.2$ mv phpinfo.php phpinfo-test.php
mv: cannot move `phpinfo.php' to `phpinfo-test.php': Permission denied
Can anyone tell me what might be preventing a user from working on its own files?
 
Never mind - I found it. I don't know why, but the parent directory (codebase) had had a change of ownership, and I hadn't noticed. Sorry for the stupid question!
 
Oh, feherke - I see that you also answered in the meantime, with exactly the same sort of thought! The directory permission was okay, but I hadn't noticed the owner.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top