
UC-8100-LX Software
Getting Started
2-7
16B
User Account Management
62B
Switching to the Root Account
You can switch to root using
sudo -i
(or sudo su). For security reason, it is not suggested to operate all
commands by root account.
NOTE
Click the following links for more information on sudo.
ATTENTION
You may get
permission denied
while using pipe or redirect behavior with non-root account
You must use 'sudo su -c' to run the command instead of using >, <, >>, << etc.. . Note the quotes around the
full command:
17B
Creating and Deleting User Accounts
You may use the command
useradd
and
userdel
to
create and delete user accounts. Be sure to reference the
man page of these commands to set relevant previledge of the account. Following example shows to create a
test1 user in sudo group whose default login shell is bash and has home directory at /home/test1
moxa@Moxa:~# sudo useradd -m -G sudo -s /bin/bash test1
To edit the password of test1 use
passwd
and enter twice the password to confirm.
moxa@Moxa:~# sudo passwd test1
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
To delete user test1, you can use the command
userdel
moxa@Moxa:# sudo userdel test1
18B
Disabling the Default User Account
ATTENTION
You should first create a user account before you disable the default account.
You can use
passwd
command to lock the default user account so user moxa cannot login.
root@Moxa:#
passwd –l moxa
To unlock the user moxa:
root@Moxa:#
passwd –u moxa
Содержание UC-8100-LX
Страница 8: ...UC 8100 LX Software Getting Started 2 2...
Страница 38: ...UC 8100 LX Software Manual Security On UC 8100 LX 4 2...