OVH Cloud OVH Cloud

perms sur un symlink ?

12 réponses
Avatar
unbewusst.sein
dans mon rep "~/Sites/man_html" j'ai un symlink :
zsh-% ls -al sqlite3_doc.html
lrwxr-xr-x 1 yt staff 29 23 mai 13:27 sqlite3_doc.html ->
sqlite-3_6_23-docs/index.html

qui a donc des "x", et quand je pointe dessus, semble "normal", ça me
dit "Forbiden"...

le fichier source lui n'a pas d'"x" :
zsh-% ls -al sqlite-3_6_23-docs/index.html
-rw-r--r-- 1 yt staff 7405 9 mar 14:05 sqlite-3_6_23-docs/index.html


c'est normal que les perms du symlink soient différentes de la source ?

peut-être parce que, entre target et sour il y a un rép traversé :

drwxr-xr-x@ 128 yt staff 4352 23 mai 09:55 sqlite-3_6_23-docs


--
« L'éternité c'est long, surtout vers la fin... »
(Woody Allen)

2 réponses

1 2
Avatar
Jacques Perrocheau
In article <4bfaad32$0$27575$,
SAM wrote:

Là pour un allias il me semble qu'il lui faut bien les 3 x
(x = exécutable) pour que tout le monde ait le droit de l'activer.



man 7 symlink

----
The owner and group of an existing symbolic link can be changed by means
of the lchown(2) system call. The flags, access permissions,
owner/group and modification time of an existing symbolic link can be
changed by means of the lchflags(2), lchmod(2), lchown(2), and
lutimes(2) system calls, respectively. Of these, only the flags are
used by the system; the access permissions and ownership are ignored.
----

--
Jacques PERROCHEAU
CNRS UMR 6226
Université de Rennes 1, Campus de Beaulieu, 35042 RENNES Cedex, France
Avatar
unbewusst.sein
Jacques Perrocheau wrote:


man 7 symlink

----
The owner and group of an existing symbolic link can be changed by means
of the lchown(2) system call. The flags, access permissions,
owner/group and modification time of an existing symbolic link can be
changed by means of the lchflags(2), lchmod(2), lchown(2), and
lutimes(2) system calls, respectively. Of these, only the flags are
used by the system; the access permissions and ownership are ignored.
----



super ! merci pour 7 info !
--
« Sur le plus beau trône du monde,
on n'est jamais assis que sur son cul ! »
(Michel de Montaigne)
1 2