| /l3/users/16-07-2018/NT-Ladm/debian4.net.nt/user :1 :2 :3 :4 :5 :6 :7 |
|
|
$vim echo.sh
|
|
$./echo.sh
l3script: ./echo.sh: Отказано в доступе |
|
$vim echo.sh
|
|
$./echo.sh
l3script: ./echo.sh: Отказано в доступе |
|
$ls- l
l3script: ls-: команда не найдена |
|
$ls
= 3 55 echo.sh granata.jpg lpi 2 names pamyatka.pdf soft text 1 33 backup errlog green man_smb_conf newfile press_any_key_to_continue.jpg sorted touchlist 10 44 bigfile file Light_Alloy_4.4.784_RC2_by_FAFNIR.exe matrix.jpg no_file_with_this_namae proj sorted_passwd unsorted 2 5 bin freebsd.jpg lpi 1 myfile ogo.jpg sh source |
|
$ls -l
итого 2972 -rw-r--r-- 1 user user 0 Июл 18 11:24 = -rw-r--r-- 1 user user 0 Июл 17 12:20 1 -rw-r--r-- 1 user user 0 Июл 18 11:17 10 -rw-r--r-- 1 user user 0 Июл 17 12:20 2 -rw-r--r-- 1 user user 0 Июл 17 12:20 3 -rw-r--r-- 1 user user 0 Июл 17 12:20 33 -rw-r--r-- 1 user user 0 Июл 17 12:20 44 -rw-r--r-- 1 user user 0 Июл 18 11:21 5 -rw-r--r-- 1 user user 0 Июл 17 12:20 55 ... -rwxr-xr-x 1 user user 23048 Окт 9 2014 press_any_key_to_continue.jpg drwxr-xr-x 3 user user 4096 Июл 17 12:26 proj drwxr-xr-x 2 user user 4096 Окт 9 2014 sh drwxr-xr-x 2 user user 4096 Июл 17 16:48 soft -rw-r--r-- 1 user user 51 Июл 17 12:40 sorted -rw-r--r-- 1 user user 986 Июл 17 12:50 sorted_passwd drwxr-xr-x 2 user user 4096 Июл 16 14:13 source drwxr-xr-x 2 user user 4096 Июл 17 12:26 text -rw-r--r-- 1 user user 16 Июл 17 12:18 touchlist -rw-r--r-- 1 user user 51 Июл 17 12:39 unsorted |
|
$./echo.sh
l3script: ./echo.sh: Отказано в доступе |
|
$ls
= 3 55 echo.sh granata.jpg lpi 2 names pamyatka.pdf soft text 1 33 backup errlog green man_smb_conf newfile press_any_key_to_continue.jpg sorted touchlist 10 44 bigfile file Light_Alloy_4.4.784_RC2_by_FAFNIR.exe matrix.jpg no_file_with_this_namae proj sorted_passwd unsorted 2 5 bin freebsd.jpg lpi 1 myfile ogo.jpg sh source |
|
$./echo.sh
l3script: ./echo.sh: Отказано в доступе |
|
$sudo ./echo.sh
[sudo] password for user: Sorry, try again. [sudo] password for user: Sorry, try again. [sudo] password for user: user is not in the sudoers file. This incident will be reported. |
|
$./echo.sh
l3script: ./echo.sh: Отказано в доступе |
|
$vim echo.sh
--- /tmp/l3-saved-12359.3455.19079 2018-07-18 12:11:15.942505146 +0300 +++ echo.sh 2018-07-18 12:15:05.878506945 +0300 @@ -1,14 +1,17 @@ #!/bin/bash echo "wich program" + read answer + case $answer in + "man" | "info" ) echo 'you are rite' -;; + ;; "whatis" | "apropos" ) echo 'not that way' -;; + ;; * )echo 'you are wrong' -;; + ;; esac |
|
$./echo.sh
l3script: ./echo.sh: Отказано в доступе |
|
|