Account Management: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
(Uus lehekülg: 'As you know Telem-GW6 is Busybow Linux based system. So normal commands for managing user accounts and file permissions apply. Typical commands to know and use are: adduser, delu...')
 
No edit summary
Line 1: Line 1:
As you know Telem-GW6 is Busybow Linux based system. So normal commands for managing user accounts and file permissions apply. Typical commands to know and use are: adduser, deluser, passwd, chmod, chown, cp, rm. Introduction to Busybox and its commands can be found from [http://linux.die.net/man/1/busybox]
As you know Telem-GW6 is Busybow Linux based system. So normal commands for managing user accounts and file permissions apply. Typical commands to know and use are: adduser, deluser, passwd, chmod, chown, cp, rm. Introduction to Busybox and its commands can be found from [http://linux.die.net/man/1/busybox]
Small example script that deletes default accounts and adds new account called admin. It needs to be executed as root user.
<syntaxhighlight lang="bash">
echo "Remove user ftpuser and it's home directory"
deluser ftpuser
rm -r /home/ftpuser
echo "Remove user martem and it's home directory"
deluser martem
rm -r /home/martem
echo "Create user admin"
adduser admin
</syntaxhighlight>

Revision as of 13:49, 28 December 2011

As you know Telem-GW6 is Busybow Linux based system. So normal commands for managing user accounts and file permissions apply. Typical commands to know and use are: adduser, deluser, passwd, chmod, chown, cp, rm. Introduction to Busybox and its commands can be found from [1]

Small example script that deletes default accounts and adds new account called admin. It needs to be executed as root user.

echo "Remove user ftpuser and it's home directory"
deluser ftpuser
rm -r /home/ftpuser

echo "Remove user martem and it's home directory"
deluser martem
rm -r /home/martem

echo "Create user admin"
adduser admin