#!/bin/bash# commentsudo команда
[Desktop Entry]Exec=/home/user1/bin/mySrcipt.shIcon=/home/user1/bin/mySrcipt.pngPath=/home/user1/bin/Name=My ProgrammName[ru]=Моя программаStartupNotify=falseTerminal=falseType=Application
robopr@IvanMl:~$ mount /dev/sdb1 /media/newmount: только root может делать этоrobopr@IvanMl:~$ mount /dev/sdb1 /home/robopr/myUsbmount: только root может делать это
## This file MUST be edited with the 'visudo' command as root.## Please consider adding local content in /etc/sudoers.d/ instead of# directly modifying this file.## See the man page for details on how to write a sudoers file.#Defaults env_resetDefaults mail_badpassDefaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"# Host alias specification# User alias specification# Cmnd alias specification# User privilege specificationroot ALL=(ALL:ALL) ALL# Members of the admin group may gain root privileges%admin ALL=(ALL) ALL# Allow members of group sudo to execute any command%sudo ALL=(ALL:ALL) ALL# See sudoers(5) for more information on "#include" directives:#includedir /etc/sudoers.drobopr ALL=(ALL) NOPASSWD: /bin/mount,/bin/umount,/home/robopr/Рабочий стол/view,/home/robopr/view
root:x:0:daemon:x:1:bin:x:2:sys:x:3:adm:x:4:syslog,roboprtty:x:5:disk:x:6:lp:x:7:mail:x:8:news:x:9:uucp:x:10:man:x:12:proxy:x:13:kmem:x:15:dialout:x:20:roboprfax:x:21:voice:x:22:cdrom:x:24:roboprfloppy:x:25:tape:x:26:sudo:x:27:robopraudio:x:29:pulsedip:x:30:roboprwww-data:x:33:backup:x:34:operator:x:37:list:x:38:irc:x:39:src:x:40:gnats:x:41:shadow:x:42:utmp:x:43:video:x:44:sasl:x:45:plugdev:x:46:roboprstaff:x:50:games:x:60:users:x:100:nogroup:x:65534:systemd-journal:x:101:systemd-timesync:x:102:systemd-network:x:103:systemd-resolve:x:104:systemd-bus-proxy:x:105:input:x:106:crontab:x:107:syslog:x:108:netdev:x:109:messagebus:x:110:uuidd:x:111:ssl-cert:x:112:lpadmin:x:113:roboprlightdm:x:114:nopasswdlogin:x:115:ssh:x:116:whoopsie:x:117:mlocate:x:118:avahi-autoipd:x:119:avahi:x:120:bluetooth:x:121:scanner:x:122:sanedcolord:x:123:pulse:x:124:pulse-access:x:125:rtkit:x:126:saned:x:127:robopr:x:1000:sambashare:x:128:robopr
robopr@IvanMl:~$ iduid=1000(robopr) gid=1000(robopr) группы=1000(robopr),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare)