Asterisk Pbx Add User

Páginas: 2 (346 palabras) Publicado: 10 de abril de 2012
Adding a system user
The Ubuntu server install process asks you to add a system user other than root, but
CentOS does not. In order to be consistent in the book and to be more secure, we’re
goingto add another system user and provide it sudo access.§ To add the new user,
execute the adduser command:
# adduser asteriskpbx
# passwd asteriskpbx
Changing password for user asteriskpbx.
NewUNIX password:
Retype new UNIX password:
Now we need to provide the asteriskpbx user sudo access. We do this by modifying the
sudoers file with the visudo command. You’ll need to install visudo thefirst time you
use it:
# yum install sudo
With the sudo-related applications and file installed, we can modify the sudoers file.
Execute the visudo command and look for the lines shown below:
#visudo
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
With the %wheel line uncommented as shown in our example, save the file by pressing
Esc , then typing :wq and pressingEnter . Now open the /etc/group file in your favorite
editor (nano is easy to use) and find the line that starts with the word wheel. Modify it
like so:
wheel:x:10:root,asteriskpbx
Save the file,log out from root by typing exit, and log in as the asteriskpbx user you
created. Test your sudo access by running the following command:
$ sudo ls /root/
[sudo] password for asteriskpbx:
Aftertyping your password, you should get the output of the /root/ directory. If you
don’t, go back and verify the steps to make sure you didn’t skip or mistype anything.
The rest of the instructions inthis chapter will assume that you’re the asteriskpbx user
and that you have sudo access.
One last thing needs to done, which will allow you to enter commands without having
to enter the full path.By default only root has /sbin/ and /usr/sbin/ in the default system
PATH, but we’ll add it to our asteriskpbx user as well since we’ll be running many applications
located in those directories....
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Instalacion IP PBX Asterisk
  • Asterisk como solución PBX
  • Pbx Asterisk Embebida
  • Asterisk PBX
  • Asterisk
  • Asterisk
  • asterisk
  • usera

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS