Friday, 27 August 2004

Services For Unix - NFS Client: First Blood, Part II

I dare you to change the default file creation permissions from 755 to something which doesn't have the execute bit set.

Alright, I don't know much about NFS, but isn't there a way to find out if the file you are acessing is a regular file or a directory? Because once you remove that execute bit from the permissions you can no longer search in directories, resulting in a nice "Access denied" for the folder you've just created.

Maybe there should be different options for files and folders. But that's my humble opinion. Anyway, I'm stuck with regular files looking like -rwx-r-x-r-x on my directory listings. I've always wanted to execute a windows backup file on Linux!

2 comments:

Anonymous said...

http://unix.about.com/library/glossary/bldef-cmd-umask.htm

It is important to grant execute permission to the user; otherwise, you will not be able to cd into new directories. It will not make all newly created files executable.

XCondE said...

No? Check out:
[root@tahan dotnet1]# ll
total 8
drwxr-xr-x 4 backer backer 4096 Aug 26 18:07 CDs
drwxr-x--- 2 backer backer 4096 Aug 27 10:30 DOTNET1
[root@tahan dotnet1]# ll DOTNET1/
total 5999880
-rwxr-x--- 1 backer backer 115901952 Aug 27 09:58 BlackFishWapBKP.BAK
-rwxr-x--- 1 backer backer 1591808 Aug 27 09:58 brewproductsBKP.BAK
-rwxr-x--- 1 backer backer 529979392 Aug 27 10:00 dotnet1_SystemBackup.bkf
-rwxr-x--- 1 backer backer 4299065856 Aug 27 10:30 MobileDesktop2004BKP_2.BAK
-rwxr-x--- 1 backer backer 1136502272 Aug 27 10:06 MobileDesktop2004BKP.BAK
-rwxr-x--- 1 backer backer 54797824 Aug 27 10:30 SharePoint