This is so wierd. Logged in to a Linux (RHEL) box as a user 'g', doing an ls -lah shows drwxrwxrwx 6 g g 4.0K Jun 23 13:27. Drwxrw-r-x 6 root root 4.0K Jun 23 13:15.rwxrw- 1 g g 678 Jun 23 13:26.bashhistory -rwxrw- 1 g g 33 Jun 23 13:15.bashlogout -rwxrw- 1 g g 176 Jun 23 13:15.bashprofile -rwxrw- 1 g g 124 Jun 23 13:15.bashrc drw-r- 2 g g 4.0K Jun 23 13:25.ssh So the user 'g' in group 'g' /should/ be able to read and write to the.ssh directory but if I do ls -lah.ssh/ I get ls:.ssh/: Permission denied. I also get Permission denied if I try and cat any files in the directory If I go in as root and change the permissions to 700, 744, 766 or anything as long as the 'user' permission is 7 it works and I can CD and LS the directory and files within.
Id g returns uid=504(g) gid=506(g) groups=506(g) Edit: I've copied these permissions exactly to another identical box and there is no issue. I can cd into a directory without execute permissions. The directory will require the execute bit set in order for you to enter it. I don't know what you tested, but you cannot enter a directory without the execute bit, or read files in it: $ mkdir foo $ echo 'baz' foo/bar $ chmod 660 foo $ cd foo bash: cd: foo: Permission denied $ cat foo/bar cat: foo/bar: Permission denied That is, unless your process has the CAPDACOVERRIDE POSIX capability set (like root has), which allows you to enter directories without the executable bit set, iirc. Basically, you should try to keep you.ssh directory at 700, and everything in it at 600, just to be safe.
After moving my shared folders from one Mac OSX user account to another (which seems to have screwed up the OSX permissions for these folders), I've been having trouble each time I boot up my virtual XP machine under VMWare Fusion (using latest version of XP, latest version of VMWare, latest version of OSX, on a 2008 MacBook Pro). As long as you have administrative access to your Mac computer, you can change the permissions for a file, folder or disk on the Mac from. How to Change File Permission From Read-Only to Read-Write on a Mac. By David Weedmark. Related Articles. Folder or disk on the Mac from 'Read Only' to 'Read & Write.' This is important to know if.
The ssh man page gives per file instructions on the required ownerships and permission modes for files in /.ssh.