Thomas SMETS wrote:
>
> Tx Eric,
>
> what did I do then when invoking chmod -Rv 6755 * ?
>
> Thomas,
>
There you setted the 'Set user ID' and the 'Set group ID' !!
BTW SUID and SGID.
So when a file is set with ex: -rw-r--r--
with chmod 6755 becomes -rwsr-sr-x
Remarked the 's' ? The SUID (s) replace the 'x'.
See the description of chmod.
So you setted new access priv. = (named) EXTENDED priv.
to the user and group to facilitate the concept
of access priv. used by processes and files.
By this way you authorize other users to read and modif
your data but only when using a prog who's select and
control the plausibility on the modif in order to prevent
any error.
See also the EUID and RUID.
Eric
> "Eric MC.D" wrote:
> >
> > Les SUID bit et SGID bit sont d�terminants pour les droits
> > d'acc�s des processus.
> > Il ne sont normalement qu'applicables � des fichiers de
> > programme.
> > Mais il existe �gal. des droits d'acc�s pour les r�p.
> > Si un utilisateur veut cr�er ou d�faire un fichier dans un
> > r�p. o� le droit d'acc�s est rwxrwxrwx il en est capable.
> > Si tu veux que cela ne puisse �tre possible il existe donc
> > ce qu'on appelle le Sticky bit pour les r�p.
> > Dans ce cas le signe t appara�t dans les droits
> > attribu�s au reste du monde.
> > Si le Sticky bit est appliqu� seul le prop. peut
> > supprimer un fichier du r�p. Sauf le root biensur.(0)
> > Il faut donc faire:
> > chmod u+t /r�p
> > ou
> > chmod 1777 /r�p.
> > Cela deviendra: drwxrwxrwxt ......
> > C'est bien cela que tu veux ?
> > Eric
> > PS: la prochaine fois demande dans la liste debutant, comme
> > cela il ne faut pas que se soit en Anglais.
> >
> > To Till,
> > For ex. if rwxrwxrwx is attributed to a file everyone can
> > delete
> > this file.
> > The SUID and SGID bit are normaly applicable to prog. files.
> > But this is also available for dirs.
> > This is the Sticky bit for dirs.
> > If the Sticky bit is set, only the prop. of the dir can
> > delete a file in this dir. (also the root (0) of corse)
> > To set this bit do:
> > chmod u+t /dir
> > or
> > chmod 1777 /dir
> > Now it becomes drwxrwxrwxt.
> >
> > >
> > > [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 755 * # 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 =========