-rwsr-x--- ............. rwx는 알겠는데.. s는 뭐죠?

ksj0822의 이미지

아는 사람 서버를 텔넷으로 접속해서 놀구 있었는데..
난데없이 한 파일이 -rwsr-x--- 라구 되어 있더군요..

분명히... r : read, w: write, x:execute인데..
도대체 s는 hidden file도 아니고 뭐하는 놈입니까?

아.. 그리구요..
-rwxrwxrwx에서
-는 파일이죠? d는 디렉토리, l은 심볼릭 링크..
그밖에 또 뭐가 있나요? 정리 좀 해 주세요..

cjh의 이미지

ls 매뉴얼 페이지를 보시면 됩니다...

파일 종류

Quote:
b Block special file.
c Character special file.
d Directory.
l Symbolic link.
s Socket link.
p FIFO.
- Regular file.

각 비트의 의미

Quote:
1. If r, the file is readable; if -, it is not readable.

2. If w, the file is writable; if -, it is not writable.

3. The first of the following that applies:

S If in the owner permissions, the file is not exe-
cutable and set-user-ID mode is set. If in the
group permissions, the file is not executable and
set-group-ID mode is set.

s If in the owner permissions, the file is exe-
cutable and set-user-ID mode is set. If in the
group permissions, the file is executable and set-
group-ID mode is set.

x The file is executable or the directory is search-
able.

- The file is neither readable, writable, exe-
cutable, nor set-user-ID nor set-group-ID mode,
nor sticky. (See below.)

These next two apply only to the third character in the last group (other permissions).

T The sticky bit is set (mode 1000), but not execute
or search permission. (See chmod(1) or
sticky(8).)

t The sticky bit is set (mode 1000), and is search-
able or executable. (See chmod(1) or sticky(8).)

--
익스펙토 페트로눔