Hello:

linux nitwit wrote,
> here is my question ive configured samba 

Configured Samba as what?

> and it works fine.but if accidentally the linux machine gets rebooted
> the the windows machines can not access it for a few hours. errors
> like network path not found and semophore error come then after a
> while it gets corrected by itself. ENV = win2k active directory domain
> and a mix and match of win 98 and win2k workstations. 

> i guess the problem s got something to do with Master browser stuff in
> smb.conf.

Quite possible! If the Samba server wins the election and becomes the
DMB, then browsing will be affected if the DMB goes offline.

The solution is to remove the Samba server as the DMB by setting the
following options:

local master = no
domain master = no
wins server = <IP of Win2K Server>

> and now that im at it i have another question in the above setup the
> developers make changes to the code and test it on the webserver so
> they have read/write access to the apache root directory and when one
> developer wants to access the files created by another developer he
> can not access it as the file owner is different what do i do to solve
> this problem 

> would making a group developers and putting all users in that group
> help?? 

Do you understand how UNIX access permissions work? If no, then start by
reading chmod(1).

To provide group access to the shared folder:

 - Create a group and add all the users whom you wish to provide write
   access to this group. We shall call the group as "staff"

 - Identify the shares for group access and change the group ownership
   to "staff"

        chgrp -R staff /path/to/share
 
 - Make the shares group writable and set the sticky bit:

        chmod 1755 /path/to/share

 - Make the files in the share to be group read/writable:

        chmod 644 -R /path/to/share/*

 - Users should have their "umask" set to "002". This is the default in
   RedHat Linux.

This should do what you want.

> the developers have ssh access to the directory as well. basically how
> do i maintain the file access rights. 

Get a book on UNIX system administration and RTFM. Its all in there.

> maybe creating a guest login which has read write access for samba
> would help as all files would be owned by guest but what about the
> files created with console access....

Samba also has a whole bunch of options to set permissions. See
smb.conf(5) for "create mask" and related options.
 
> i guess this mess was the mother of CVS..  but is there an easy way
> out...

-- Shanu
http://shankerbalan.com

-- 
Ben (Obi-Wan) Kenobi: 
        For more than a thousand generations
        the Jedi were the guardians of peace and
        justice in the galaxy. Before the dark times.
        Before the Empire.

_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to