Журнал лабораторных работ

Содержание

Журнал

Четверг (10/18/18)

/dev/pts/1
15:50:22
#chmod u=rx g= o= file1
chmod: cannot access `g=': No such file or directory
chmod: cannot access `o=': No such file or directory
/dev/pts/0
15:50:38
#chmod u=rx g= o= file1ls
chmod: cannot access `g=': No such file or directory
chmod: cannot access `o=': No such file or directory
chmod: cannot access `file1ls': No such file or directory
/dev/pts/1
15:50:38
#chmod u=rx g= o= file1ls
chmod: cannot access `g=': No such file or directory
chmod: cannot access `o=': No such file or directory
chmod: cannot access `file1ls': No such file or directory
/dev/pts/0
15:50:59
#ls -alt
total 8
drwxr-xr-x 2 root root 4096 Oct 18 16:45 .
-r-xr--r-- 1 root root    0 Oct 18 16:45 file1
-rw-r--r-- 1 root root    0 Oct 18 16:45 file2
-rw-r--r-- 1 root root    0 Oct 18 16:45 file3
drwx------ 8 root root 4096 Oct 18 16:44 ..
/dev/pts/1
15:50:59
#ls -alt
total 8
drwxr-xr-x 2 root root 4096 Oct 18 16:45 .
-r-xr--r-- 1 root root    0 Oct 18 16:45 file1
-rw-r--r-- 1 root root    0 Oct 18 16:45 file2
-rw-r--r-- 1 root root    0 Oct 18 16:45 file3
drwx------ 8 root root 4096 Oct 18 16:44 ..
/dev/pts/0
15:51:02
#chmod g-r o-r file1
chmod: cannot access `o-r': No such file or directory
/dev/pts/1
15:51:02
#chmod g-r o-r file1
chmod: cannot access `o-r': No such file or directory
/dev/pts/0
15:51:34
#chmod a=rx file2

/dev/pts/1
15:51:34
#chmod a=rx file2

/dev/pts/0
15:52:26
#chmod a=rx file2

/dev/pts/1
15:52:26
#chmod a=rx file2

/dev/pts/0
15:52:36
#ls -alt
total 8
drwxr-xr-x 2 root root 4096 Oct 18 16:45 .
-r-x---r-- 1 root root    0 Oct 18 16:45 file1
-r-xr-xr-x 1 root root    0 Oct 18 16:45 file2
-rw-r--r-- 1 root root    0 Oct 18 16:45 file3
drwx------ 8 root root 4096 Oct 18 16:44 ..
/dev/pts/1
15:52:36
#ls -alt
total 8
drwxr-xr-x 2 root root 4096 Oct 18 16:45 .
-r-x---r-- 1 root root    0 Oct 18 16:45 file1
-r-xr-xr-x 1 root root    0 Oct 18 16:45 file2
-rw-r--r-- 1 root root    0 Oct 18 16:45 file3
drwx------ 8 root root 4096 Oct 18 16:44 ..
/dev/pts/0
15:52:41
#cd /opt/

/dev/pts/1
15:52:41
#cd /opt/

Пятница (10/19/18)

/dev/pts/0
08:33:13
#lss -l
l3script: lss: command not found
/dev/pts/1
08:33:13
#lss -l
l3script: lss: command not found
/dev/pts/0
08:33:17
#ls -l
total 8
drwxrwx---+ 2 root devel 4096 Oct 18 16:00 project
drwxrwxrwt  2 root root  4096 Oct 18 16:10 public
-rw-r--r--  1 root root     0 Oct 18 16:14 ROOT
/dev/pts/1
08:33:17
#ls -l
total 8
drwxrwx---+ 2 root devel 4096 Oct 18 16:00 project
drwxrwxrwt  2 root root  4096 Oct 18 16:10 public
-rw-r--r--  1 root root     0 Oct 18 16:14 ROOT
/dev/pts/0
08:33:22
#!setfa
setfacl -m user:user:r project/
/dev/pts/1
08:33:22
#!setfa
setfacl -m user:user:r project/
/dev/pts/0
08:34:22
#setfacl -m user:user:rx project/

/dev/pts/1
08:34:22
#setfacl -m user:user:rx project/

/dev/pts/0
08:34:35
#chmod g+s project/

/dev/pts/1
08:34:35
#chmod g+s project/

/dev/pts/0
08:43:17
#ьÐmkdir project3

/dev/pts/1
08:43:17
#ьÐmkdir project3

/dev/pts/0
08:43:31
#ls -l
total 12
drwxrws---+ 2 root devel 4096 Oct 18 16:00 project
drwxrwx---  2 root root  4096 Oct 19 09:43 project3
drwxrwxrwt  2 root root  4096 Oct 18 16:10 public
-rw-r--r--  1 root root     0 Oct 18 16:14 ROOT
/dev/pts/1
08:43:31
#ls -l
total 12
drwxrws---+ 2 root devel 4096 Oct 18 16:00 project
drwxrwx---  2 root root  4096 Oct 19 09:43 project3
drwxrwxrwt  2 root root  4096 Oct 18 16:10 public
-rw-r--r--  1 root root     0 Oct 18 16:14 ROOT
/dev/pts/0
08:43:34
#fdisk -l
Disk /dev/xvda: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders, total 33554432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e4875
    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1            2048    32088063    16043008   83  Linux
Disk /dev/xvdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvdb doesn't contain a valid partition table
/dev/pts/1
08:43:34
#fdisk -l
Disk /dev/xvda: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders, total 33554432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e4875
    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1            2048    32088063    16043008   83  Linux
Disk /dev/xvdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvdb doesn't contain a valid partition table
/dev/pts/0
08:52:06
#uname -r
3.2.0-4-amd64
/dev/pts/1
08:52:06
#uname -r
3.2.0-4-amd64
/dev/pts/0
08:53:46
#аfdisk /dev/xvdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x3722d9cc.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/xvdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
...
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3722d9cc
    Device Boot      Start         End      Blocks   Id  System
/dev/xvdb1            2048     4884860     2441406+  83  Linux
/dev/xvdb2         4884861    10485759     2800449+  83  Linux
Command (m for help): ц
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/1
08:53:46
#аfdisk /dev/xvdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x3722d9cc.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/xvdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
...
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3722d9cc
    Device Boot      Start         End      Blocks   Id  System
/dev/xvdb1            2048     4884860     2441406+  83  Linux
/dev/xvdb2         4884861    10485759     2800449+  83  Linux
Command (m for help): ц
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
прошло 14 минут
/dev/pts/0
09:08:37
#fdisk -l
Disk /dev/xvda: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders, total 33554432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e4875
    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1            2048    32088063    16043008   83  Linux
Disk /dev/xvdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3722d9cc
    Device Boot      Start         End      Blocks   Id  System
/dev/xvdb1            2048     4884860     2441406+  83  Linux
/dev/xvdb2         4884861    10485759     2800449+  83  Linux
/dev/pts/1
09:08:37
#fdisk -l
Disk /dev/xvda: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders, total 33554432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e4875
    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1            2048    32088063    16043008   83  Linux
Disk /dev/xvdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3722d9cc
    Device Boot      Start         End      Blocks   Id  System
/dev/xvdb1            2048     4884860     2441406+  83  Linux
/dev/xvdb2         4884861    10485759     2800449+  83  Linux
/dev/pts/0
09:08:50
#ls -l /dev/sd*
ls: cannot access /dev/sd*: No such file or directory
/dev/pts/1
09:08:50