Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I had overly permissive directory permissions (777) on my home dir, and just changed these to 755:

# cd
# pwd
/home/machinename/myuserid
# ls -ld .
drwxr-xr-x    9 myuserid  mygroupid         4096 Oct 17 11:44 .

That should be sufficient to create files in my home directory, but is not on this machine:

# ls -l x
ls: 0653-341 The file x does not exist.
# touch x
touch: 0652-046 Cannot create x.

Note that I am logged in as myself:

# id
uid=9175(myuserid) gid=7777(mygroupid) groups=200(othergroupid)

I can modify existing files:

# cat h
stuff
# echo blah >> h
# cat h
stuff
blah

so I know the filesystem isn't mounted read-only.

This is on AIX, and acledit $HOME shows:

*
* ACL_type   AIXC
*
attributes:
base permissions
    owner(myuserid):  rwx
    group(mygroupid):  r-x
    others:  r-x
extended permissions
    disabled

Which also appears to indicate that I'd be able to create (these acls look the same as those on my HOME dir on a "well behaved machine").

share|improve this question
    
This is on AIX, right? Does acledit /home/machinename/myuserid show anything interesting? –  Alan Shutko Oct 17 '12 at 16:36
    
Sounds like an Access Control List problem to me. I suggest checking ACLs as well. (How to check/set ACLs varies by *nix flavor.) –  HairOfTheDog Oct 17 '12 at 16:58
    
ACLs look okay to me. Updated question with acledit output on ~/. –  Peeter Joot Oct 17 '12 at 17:08
add comment

1 Answer

up vote 0 down vote accepted

Our sysadmins suspected filesystem corruption, but fsck didn't flag any issues. They ended up recreating my home directory and deleting and recreating my userid with the same uid and group memberships.

Permissions and acls on the new home directory and the "new" userid appears identical, however, things are now working in the expected fashion.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.