1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
| [root@SAIX61SPTNIM] /home/secu # ls
Start_Chk_Sec.sh listes motd out scripts www
bin log ori reports
[root@SAIX61SPTNIM] /home/secu # vi Start_Chk_Sec.sh
=> ouverture vi avec rien (ouverture en fichier vide)
[root@SAIX61SPTNIM] /home/secu # ll
total 64
-rw-r----- 1 collect collect 1440 Jul 29 17:10 Start_Chk_Sec.sh
drwx------ 2 collect collect 256 Jul 29 15:52 bin
drwxrwx--- 3 collect collect 4096 Jul 29 15:40 listes
drwx------ 2 collect collect 256 Jul 28 15:37 log
drwx------ 2 collect collect 4096 Jul 29 17:06 motd
drwx------ 2 collect collect 4096 Jul 28 15:07 ori
drwx------ 2 collect collect 4096 Jul 29 10:29 out
drwxr-xr-x 3 collect collect 4096 Jul 29 09:38 reports
drwx------ 3 collect collect 4096 Jul 29 15:52 scripts
drwxr-s--- 10 collect nobody 4096 Jul 23 15:21 www
[root@SAIX61SPTNIM] /home/secu # vi Start_Chk_Sec.sh
=> ouverture vi avec rien (ouverture en fichier vide)
[root@SAIX61SPTNIM] /home/secu # chmod 740 Start_Chk_Sec.sh
chmod: Start_Chk_Sec.sh: A file or directory in the path name does not exist.
[root@SAIX61SPTNIM] /home/secu # ls -l
total 64
-rw-r----- 1 collect collect 1440 Jul 29 17:10 Start_Chk_Sec.sh
drwx------ 2 collect collect 256 Jul 29 15:52 bin
drwxrwx--- 3 collect collect 4096 Jul 29 15:40 listes
drwx------ 2 collect collect 256 Jul 28 15:37 log
drwx------ 2 collect collect 4096 Jul 29 17:06 motd
drwx------ 2 collect collect 4096 Jul 28 15:07 ori
drwx------ 2 collect collect 4096 Jul 29 10:29 out
drwxr-xr-x 3 collect collect 4096 Jul 29 09:38 reports
drwx------ 3 collect collect 4096 Jul 29 15:52 scripts
drwxr-s--- 10 collect nobody 4096 Jul 23 15:21 www
[root@SAIX61SPTNIM] /home/secu # chmod 740 ./Start_Chk_Sec.sh
chmod: ./Start_Chk_Sec.sh: A file or directory in the path name does not exist.
[root@SAIX61SPTNIM] /home/secu # ls -al
total 72
drwxr-x--- 11 collect nobody 4096 Jul 30 08:59 .
drwxr-xr-x 7 collect collect 256 Jul 23 14:31 ..
-rw-r----- 1 collect collect 1440 Jul 29 17:10 Start_Chk_Sec.sh
drwx------ 2 collect collect 256 Jul 29 15:52 bin
drwxrwx--- 3 collect collect 4096 Jul 29 15:40 listes
drwx------ 2 collect collect 256 Jul 28 15:37 log
drwx------ 2 collect collect 4096 Jul 29 17:06 motd
drwx------ 2 collect collect 4096 Jul 28 15:07 ori
drwx------ 2 collect collect 4096 Jul 29 10:29 out
drwxr-xr-x 3 collect collect 4096 Jul 29 09:38 reports
drwx------ 3 collect collect 4096 Jul 29 15:52 scripts
drwxr-s--- 10 collect nobody 4096 Jul 23 15:21 www
[root@SAIX61SPTNIM] /home/secu # mv 'Start_Chk_Sec.sh' ./bin/Start_Chk_Sec.ksh
mv: 0653-401 Cannot rename Start_Chk_Sec.sh to ./bin/Start_Chk_Sec.ksh:
A file or directory in the path name does not exist.
[root@SAIX61SPTNIM] /home/secu # chmod 740 Start_Chk_Sec.sh
chmod: Start_Chk_Sec.sh: A file or directory in the path name does not exist.
[root@SAIX61SPTNIM] /home/secu # cat Start_Chk_Sec.sh
cat: 0652-050 Cannot open Start_Chk_Sec.sh.
[root@SAIX61SPTNIM] /home/secu # id
uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp)
[root@SAIX61SPTNIM] /home/secu # ll
total 64
-rw-r----- 1 collect collect 1440 Jul 29 17:10 Start_Chk_Sec.sh
drwx------ 2 collect collect 256 Jul 29 15:52 bin
drwxrwx--- 3 collect collect 4096 Jul 29 15:40 listes
drwx------ 2 collect collect 256 Jul 28 15:37 log
drwx------ 2 collect collect 4096 Jul 29 17:06 motd
drwx------ 2 collect collect 4096 Jul 28 15:07 ori
drwx------ 2 collect collect 4096 Jul 29 10:29 out
drwxr-xr-x 3 collect collect 4096 Jul 29 09:38 reports
drwx------ 3 collect collect 4096 Jul 29 15:52 scripts
drwxr-s--- 10 collect nobody 4096 Jul 23 15:21 www
[root@SAIX61SPTNIM] /home/secu # truss -eaf cat Start_Chk_Sec.sh
7405606: execve("/usr/bin/cat", 0x2FF22CC8, 0x20012BE8) argc: 2
7405606: 11731177: argv: cat Start_Chk_Sec.sh
7405606: 11731177: envp: _=/usr/bin/truss LANG=en_US LOGIN=root G_BROKEN_FILENAMES=1
7405606: 11731177: PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/usr/local/bin:/usr/local/sbin
7405606: 11731177: LC__FASTMSG=true LOGNAME=root MAIL=/usr/spool/mail/root
7405606: 11731177: LOCPATH=/usr/lib/nls/loc PS1=[root@SAIX61SPTNIM] $PWD # USER=root
7405606: 11731177: AUTHSTATE=files SHELL=/usr/bin/ksh ODMDIR=/etc/objrepos TMOUT=1800
7405606: 11731177: HOME=/root TERM=xterm MAILMSG=[YOU HAVE NEW MAIL]
7405606: 11731177: PWD=/home/secu TZ=Europe/Luxembourg A__z=! LOGNAME=#*TMOUT
7405606: 11731177: AIXTHREAD_SCOPE=S
7405606: 11731177: NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
7405606: 11731177: sbrk(0x00000000) = 0x20002B7C
7405606: 11731177: vmgetinfo(0x2FF21EC0, 7, 16) = 0
7405606: 11731177: sbrk(0x00000000) = 0x20002B7C
7405606: 11731177: sbrk(0x00000004) = 0x20002B7C
7405606: 11731177: __libc_sbrk(0x00000000) = 0x20002B80
7405606: 11731177: getuidx(4) = 0
7405606: 11731177: getuidx(2) = 0
7405606: 11731177: getuidx(1) = 0
7405606: 11731177: getgidx(4) = 0
7405606: 11731177: getgidx(2) = 0
7405606: 11731177: getgidx(1) = 0
7405606: 11731177: __loadx(0x01480080, 0x2FF21880, 0x00000A50, 0x2FF223F0, 0x00000000) = 0xD0525128
7405606: 11731177: __loadx(0x01480180, 0x2FF21880, 0x00000A50, 0xF07F699C, 0xF07F68CC) = 0xF08C4DA0
7405606: 11731177: __loadx(0x07080000, 0xF07F696C, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5CF4
7405606: 11731177: __loadx(0x07080000, 0xF07F68AC, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D00
7405606: 11731177: __loadx(0x07080000, 0xF07F697C, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D30
7405606: 11731177: __loadx(0x07080000, 0xF07F68BC, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D3C
7405606: 11731177: __loadx(0x07080000, 0xF07F693C, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D0C
7405606: 11731177: __loadx(0x07080000, 0xF07F68DC, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D24
7405606: 11731177: __loadx(0x07080000, 0xF07F694C, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D48
7405606: 11731177: __loadx(0x07080000, 0xF07F695C, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D78
7405606: 11731177: __loadx(0x07080000, 0xF07F68EC, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5D60
7405606: 11731177: __loadx(0x07080000, 0xF07F68FC, 0xFFFFFFFF, 0xF08C4DA0, 0x00000000) = 0xF08C5DD8
7405606: 11731177: getuidx(4) = 0
7405606: 11731177: getuidx(2) = 0
7405606: 11731177: getuidx(1) = 0
7405606: 11731177: getgidx(4) = 0
7405606: 11731177: getgidx(2) = 0
7405606: 11731177: getgidx(1) = 0
7405606: 11731177: __loadx(0x01480080, 0x2FF21880, 0x00000A50, 0x2FF223F0, 0x00000000) = 0xD0525128
7405606: 11731177: getuidx(4) = 0
7405606: 11731177: getuidx(2) = 0
7405606: 11731177: getuidx(1) = 0
7405606: 11731177: getgidx(4) = 0
7405606: 11731177: getgidx(2) = 0
7405606: 11731177: getgidx(1) = 0
7405606: 11731177: __loadx(0x01480080, 0x2FF21880, 0x00000A50, 0x2FF223F0, 0x00000000) = 0xD0525128
7405606: 11731177: getuidx(4) = 0
7405606: 11731177: getuidx(2) = 0
7405606: 11731177: getuidx(1) = 0
7405606: 11731177: getgidx(4) = 0
7405606: 11731177: getgidx(2) = 0
7405606: 11731177: getgidx(1) = 0
7405606: 11731177: __loadx(0x01480080, 0x2FF21880, 0x00000A50, 0x2FF223F0, 0x00000000) = 0xD0525128
7405606: 11731177: getuidx(4) = 0
7405606: 11731177: getuidx(2) = 0
7405606: 11731177: getuidx(1) = 0
7405606: 11731177: getgidx(4) = 0
7405606: 11731177: getgidx(2) = 0
7405606: 11731177: getgidx(1) = 0
7405606: 11731177: __loadx(0x01480080, 0x2FF21880, 0x00000A50, 0x2FF223F0, 0x00000000) = 0xD0525128
7405606: 11731177: getuidx(4) = 0
7405606: 11731177: getuidx(2) = 0
7405606: 11731177: getuidx(1) = 0
7405606: 11731177: getgidx(4) = 0
7405606: 11731177: getgidx(2) = 0
7405606: 11731177: getgidx(1) = 0
7405606: 11731177: __loadx(0x01480080, 0x2FF21880, 0x00000A50, 0x2FF223F0, 0x00000000) = 0xD0525128
7405606: 11731177: access("/usr/lib/nls/msg/en_US/cat.cat", 0) = 0
7405606: 11731177: _getpid() = 7405606
7405606: 11731177: fstatx(1, 0x2FF22AE8, 176, 020) = 0
7405606: 11731177: statx("Start_Chk_Sec.sh", 0x2FF22A38, 176, 020) Err#2 ENOENT
7405606: 11731177: kopen("Start_Chk_Sec.sh", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
7405606: 11731177: kopen("/usr/lib/nls/msg/en_US/cat.cat", O_RDONLY) = 3
7405606: 11731177: kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
7405606: 11731177: kfcntl(3, F_SETFD, 0x00000001) = 0
7405606: 11731177: kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
7405606: 11731177: kread(3, "\0\001 ¦\001\001 I S O 8".., 4096) = 522
7405606: 11731177: lseek(3, 0, 1) = 522
7405606: 11731177: lseek(3, 0, 1) = 522
7405606: 11731177: lseek(3, 0, 1) = 522
7405606: 11731177: _getpid() = 7405606
7405606: 11731177: lseek(3, 0, 1) = 522
cat: 0652-050 Cannot open 7405606: 11731177: kwrite(2, " c a t : 0 6 5 2 - 0 5".., 26) = 26
Start_Chk_Sec.sh7405606: 11731177: kwrite(2, " S t a r t _ C h k _ S e".., 16) = 16
.
7405606: 11731177: kwrite(2, " .\n", 2) = 2
7405606: 11731177: kfcntl(1, F_GETFL, 0x2FF22FFC) = 67110914
7405606: 11731177: close(1) = 0
7405606: 11731177: kfcntl(2, F_GETFL, 0x2FF22FFC) = 67110914
7405606: 11731177: _exit(2)
[root@SAIX61SPTNIM] /home/secu # set -o emacs
[root@SAIX61SPTNIM] /home/secu # ls
Start_Chk_Sec.sh bin listes log motd ori out reports scripts www |
Partager