Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

26 Linux

L i n u x
crypt

26.1
Linux/etc/passwd
/etc/shadow/etc/passwd
UID
GIDLinux /etc/passwd

passwd /etc/passwd
6

8
8

26.2
ls -l

-rwxrwxrwx 1 pat cs440 70 Jul 28 2112 zombin

-
rwx
rwx
rwx
-
sStTsS
tT
xst
-ST c h m o d

291

26Linux

38 r4w2x1rwxr-xr-754chmod Linux

!
chownchgrp

26.3
Linux ls -l d
ls

r m
mv

26.4 umask
umask .profile
u m a s kc h m o d

26.5 IDID
IDSUID IDSGID
4
UIDGIDUIDGID UIDGID
UIDGID SUID
SUIDUID UID
UID

SGIDGID
chmod u+s chmod u-s SUIDchmod g+s
chmod g-s SGID SUIDSGIDchownchgrp

26.6 cp mv lncpio
cp SUIDSGID

SUID mv mv
S U I D
S U I D

ln

292

Linux

S U I D
S U I D
chmod 000
SUIDSGID SUID
ncheck
c p i o c p i o
- i c p i o
-ocpio
cpio
find fromdir -print|cpio -o > archive

cpio -id < archive

cpio
1)


cpio -i

cpio -iroot

S U I D / S G I D S U I DS G I D
rootSUID/SGID/
2) cpio

3) U

cpio

4) cpio

26.7 sunewgrp
26.7.1 su

UIDGID root
26.7.2 newgrp
su

26.8
crypt

293

26Linux

vi vi -x

crypt pack
compress

26.9
26.9.1 .profile
H O M E . p r o f i l e

26.9.2 ls -a
.

26.9.3 . exrc
$ H O M E / . e x r c . / . e x r c
$ H O M E . p r o f i l e
.exrc.exrc

26.9.4
Linux/tmp/usr/tmp

007 $HOME/tmp

26.9.5 UUCP
U U C P L i n u x L i n u x U U C P
/usr/spool/uucppublic/loginlogin 777
UUCP 666777
UUCP HOME
r j c r j c

294

Linux

7 3 3

26.9.6
L i n u x
PAT H
crypt
26.9.7

login
26.9.8

r o o t
30root
26.9.9

26.9.10
sendenter
write


rm -r *

mesgmesg n mesg y
mail
!rm -r *rm -r *mail!
mail
mail mail
myname="$LOGNAME";
tr -d[\001-\007][-\013-\037]</usr/mail/$myname>>$HOME/mailbox;
> /usr/mail/$myname;
mail -f $HOME/mailbox

tr
C
26.9.11

295

26Linux

26.9.12 cu
Linux Linux
~cu
cu
c u

cu ~
c u / e t c / p a s s w d
cu

26.10
1







2
umask022
.profile

HOME
uucp
3)
umask006/007
umask077
u m a s k

HOME
4) SUID/SGID
5)
cp SUID/SGID

mv SUID/SGID

UIDGID
cpio t

296

Linux

6) SUID/SGID
000 i

7) crypt

ed -xvi -x
8)
9) PATH
10
11) writemail

12) Ctrl+DExit login


13) cu
cu
cu cu

You might also like