膊∞罔 Linuxラ膩

maya
篁ャLinux泣若 膊∞罔 ゃ荅宴

 

膊∞罔

nao
膊∞罔≪篏綺su潟潟荀

maya
腆冴若激с潟紊贋篏莢違c篁膊∞罔ゃ綺茹c羞宴莢違

 

膊∞с篋

maya
с馹с膊∞с篏鐚

nao
若c膊∞鴻篏堺ャ

maya
膊∞紊с劫彰Linux泣若≪鴻篏су違篋

nao
篏堺ャ違篋c篏с違篋<鐚

maya
若激с潟紊贋篏莢違csu潟潟х∞違鴻篏堺ャ障茹罔荐潟

nao
祉cc若吟膊∞鴻若違鐚

maya
紊тс膊∞罔<篏с潟潟с帥

nao
膊∞罔筝医荀篁ヤ篏障у堺ャ障膊∞罔筝篏с

maya
膊∞罔篏с篏с<綽荀篁ヤ篏с障<с

nao
膊∞鴻若膊∞紊у

 

sudo 潟潟

nao
х∞罔綽荀篏推堺ャ鐚

maya
sudo 潟潟у堺ャ膊∞若吟篏荐怨c篋脂蚊綽荀

nao
箴水

maya
c帥篁膊∞帥篏сuseradd潟潟guestус荐絎

 

1. useradd鴻腆肴鐚膊∞罔絎純鐚

[root@localhost ~]# which useradd
/sbin/useradd

 

2. sudo荐絎茵鐚膊∞罔絎純鐚

[root@localhost ~]# visudo

 

maya
潟潟vic帥sudo荐絎膩潟潟с篏vi潟潟

 

3. sudo荐絎菴遵

"/etc/sudoers.tmp" 112L, 3938C## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.

祉祉祉ャ祉祉

## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)ALL
guest ALL=NOPASSWD: /sbin/useradd

祉祉祉ャ祉祉

 

maya
т羣絎篋sudotest若吟篏帥

 

1. useradd潟潟絎茵

[guest@localhost ~]$ useradd sudotest
-bash: /usr/sbin/useradd: 荐怨障

 

nao
useraddс

maya
膓sudo潟潟篁c帥

 

2. sudouseradd潟潟絎茵

[guest@localhost ~]$ sudo useradd sudotest

 

nao
sudo絎純膊∞罔с堺ャ潟潟絎茵с

maya
綽泣sudoц┗潟潟絎茵帥

 

3. sudouserdel潟潟絎茵

[guest@localhost ~]$ sudo userdel sudotest
若吟 guest '/sbin/userdel sudotest'  root  localhost.localdomain 筝у茵荐怨障帥障

 

nao
visudoц┗潟潟絎茵с

maya
劫絲障荐怨膊∞罔筝篋堺ャ

nao
膊∞罔紊тс篁障蕁障

 

  • 膊∞鴻篏с
  • 膊∞罔筝医荀篁ヤ篏障у堺ャ障
  • 膊∞罔筝篏с
  • 膊∞罔篁筝翫sudo潟潟

 

鐚鐚若祉鐚鐚