If the user is creating files over a samba share you can change the default permissions by changing the options on smb.conf (or SWAT) for that share.
Here is the man page for umask: umask [-p] [-S] [mode] The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in sym- bolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise. here is a real example: [EMAIL PROTECTED] test]$ umask 077 [EMAIL PROTECTED] test]$ umask 0077 [EMAIL PROTECTED] test]$ touch mooo [EMAIL PROTECTED] test]$ ls -lta total 8 drwxrwxr-x 2 memeyou memeyou 4096 Sep 29 22:26 . -rw------- 1 memeyou memeyou 0 Sep 29 22:26 mooo drwx--x--x 29 memeyou memeyou 4096 Sep 29 22:23 .. [EMAIL PROTECTED] test]$ umask 002 [EMAIL PROTECTED] test]$ umask 0002 [EMAIL PROTECTED] test]$ touch moo [EMAIL PROTECTED] test]$ ls -lta total 8 drwxrwxr-x 2 memeyou memeyou 4096 Sep 29 22:26 . -rw-rw-r-- 1 memeyou memeyou 0 Sep 29 22:26 moo -rw------- 1 memeyou memeyou 0 Sep 29 22:26 mooo drwx--x--x 29 memeyou memeyou 4096 Sep 29 22:23 .. Have fun! Tom Please respond to [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: [luau] Saving in /home On Monday, September 29, 2003, at 04:49 PM, [EMAIL PROTECTED] wrote: > If you aren't using Samba then the default file permission are taken > from > "umask" (env variable) subtracted from 777. > > you can set umask in /etc/bashrc and it might be set somewhere on the > system also (~/bashrc) > > look for umask=177 which would be the culprit (022 is default on > redhat). I'm very green so you'll have to speak slowly. We are using Samba to talk to our Windoze machines. How does this relate to umask? So umask controls the permissions assigned to new files as they are create right? How do I set umask in /etc/bashrc? Is it just like editing a text file? If I want the permissions assigned to new files to be 770 then I should set the mask to 007 right? _______________________________________________ LUAU mailing list [EMAIL PROTECTED] http://videl.ics.hawaii.edu/mailman/listinfo/luau