Moxa UC-8410A-T-LX [40/86] Sudo mechanism

Moxa UC-8410A-T-LX [40/86] Sudo mechanism
UC-8410A Series Linux Software UC-8410A-LX Security
4-3
Sudo Mechanism
In the UC-8410A-LX, the root account is disabled for better security. Sudo is a program designed to let system
administrators allow some users to execute some commands as root (or another user). The basic philosophy is
to give as few privileges as possible but still allow people to get their work done. Using sudo is better (safer)
than opening a session as root for a number of reasons, including:
Nobody needs to know the root password (sudo prompts for the current user's password). Extra privileges
can be granted to individual users temporarily, and then taken away without the need for a password
change.
It is easy to run only the commands that require special privileges via sudo; the rest of the time, you work
as an unprivileged user, which reduces the damage that mistakes can cause.
The code below shows that some system level commands are not available to the user
moxa directly.
moxa@Moxa:~$ ifconfig
-bash: ifconfig: command not found
moxa@Moxa:~$ sudo ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:e8:00:00:07
inet addr:192.168.3.127 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:90:e8:00:00:08
inet addr:192.168.4.127 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2592 (2.5 KiB) TX bytes:2592 (2.5 KiB)

Содержание

Скачать