A user 'xyz' is usually of the group 'xyz' and not 'users'. You can check that
with an 'ls -l' in your home.
Also the subdirectories src and Classes are going to be root:root if you
create them after changing the ownership of the parent.

Thomas SMETS <[EMAIL PROTECTED]> wrote:
> 
> I'd like to set my /opt directory as a king of shared environment.
> I downloaded jdk & jre 1.1.8 / 1.2.2 / 1.3 & set up some script so one
> could work with the three in different shells whitout too many clashes. 
> Now what I want is to lock the directories so every one can see other's
> work but cannot overwrite it. I thought doing this would give the answer
> but it doesn't !
> Every action is completed under the "root" account (su). 
> 
> # From /opt doing that would allow every member of the "users" group
> # to be part of the gid allowed for the files
>     chown -Rv root.users *  
> 
> #
> # Gives rx access to anyone (only root can modify)
> # Every one can access in full control every thing it creates (sticke
> bit)
>     chmod -Rv 6755 * 
> 
> Gives out :
> mode of jre118/lib/font.properties.ISO8859_15_FDIS changed to 6755
> (rwsr-sr-x)    
> For every files
>              
> # Creating the Src & destination directories.
>      mkdir src                     
>      mkdir Classes       
>      chmod -Rv 6755 *      
> 
> Now I though that as a normal user (su username) :
> 1. Could create any file I wanted in the ./src & ./Classes without any
> troubles 
> 2. Would receive the rxw priviledge while others would only get the rx.
> 
> I doesn't seems to be that.
> Could one hint to a solution ?
> 
> Tx,
> 
> Thomas,
> 
> 
>            
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ==========================================
> 
> [EMAIL PROTECTED] wrote:
> > 
> > 'lut,
> > 
>   > Est-ce que qqn pourrait me dire comment je puis realiser la chose
> suivante :
> > 
> > /opt est un repertoire ou se trouve qq appli que je voudrais partager
> > p.e. jdk's / jre's / Weblogic / ... (Weblogic cela sera pr plus tard, je
crois)
> > j'ai  ensuite applique :
> >   chown -Rv root.users *         # pr permettre a tt le monde d'etre
reconnu comme utilsateur
> >   chmod -Rv 6755 *                # pr permettre a tt le monde de compiler
& d'executer ses pgrm Java
> >   mkdir src                      # Java source code
> >   mkdir Classes                  # Java class files
> > 
> > Maintenant, je desire autoriser n'importe qui a creer des fichiers /
repertoires / ... et les compiler,
> > mais ss permettre d'ecraser ceux des autres.
> > Je n'ai cependant pas reussi a utiliser le Sticky bit avec success.
> > Qqn pourrait-il me donner des renseignement sur ce que je dois faire ?
> > 
> > Merci,
> > 
> > thomas,
> 
> -- 
> 
> Thomas SMETS                           Phone : +32 (0)2 742. 05. 94.
> Av. de la Braban�onne 133 / 3          e-mail : tsmets @altern.org
> 1030 Bruxelles
> 
> ==== Quote of the day =========
> Ignorance is when you don't know anything and somebody finds it out.
>  ======= End of Quote =========


=-=
kk1

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Reply via email to