[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SaMBa, SWAT, chmod, & CREATE MASK



>I am using Samba 2.0.5a and W98SE. I have two shares set up: SHARED
>mounted on /shared, and USERS mounted on /home. I think I'm having a
>problem with Samba's CREATE MASK.

Please Please Please upgrade to 2.0.7.  It has fixes to some Win98 oddities that
"might" pertain to your problem.  The implementation of oplocks is also better
(faster), which will make a diffrence for shared dll/executables, etc...

>The SHARED share is meant for all apps to be shared between all (both)
>of the users. For example, I have Office97 installed on shared so it can
>be accessed by either user. I tried the same thing with StarOffice 5.2
>and it gave me fits.  Other programs are giving me fits as well.

Did you do a network install of SO5.2?  Many PC apps do NOT like bieng installed
on a share.  They usually want to be installed on each PC and told to share just
the data files.  Win9x has been known to request exclusive locks on executables
(the gods only know why), that will kill you.

>Sierra's Mastercook wouldn't work properly until I went into every file
>and (sub)directory and did chmod 775 * , this solution failed for SO52.
>My CREATE MASK is set for 0775, and I'm not sure if that deals with all

Look at the documentation for umask, I think you're missing the concept of
"mask":

--Quote--
The  umask is used by open(2) to set initial file permissions on a
newly-created file.  Specifically, permissions in  the  umask  are
turned off from the mode argument to open(2) (so, for example, the
common umask default value of 022 results in new files being  cre­
ated  with permissions 0666 & ~022 = 0644 = rw-r--r-- in the usual
case where the mode is specified as 0666).
--End Quote--

>files at installation, but files being installed have the mask 755.  Can
>you tell I'm confused?

Yep.

>I want to make every application/file have the installation mask 775 so
>both users can access any files to which they need r/w/x access.  What
>can I do?

Don't forget there is "create mask", "directory mask", "directory security
mask", "security mask".

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505