≡ Menu

user accounts

Ubuntu Linux: Add a User To Group

How do I add a user to group under Ubuntu Linux operating system using command line options?
[click to continue…]

Samba Restrict File Sharing To Particular Users or Network Addresses

All my local Linux user accounts will be able to log in to my Samba server and access share. How do I restrict access to particular users or network subnet such as
[click to continue…]

Linux /bin/false VS /sbin/nologin: Politely Refuse a Login

How do I deny access to user account? Do I need to use /bin/false or /sbin/nologin to refuse a login?
[click to continue…]

Move or migrate user accounts from old Linux server to a new Linux server

Q. How do I Move or migrate user accounts to from old Linux server a new Cent OS Linux server including mails? This new system a fresh installation.

A. You can migrate users from old Linux server to new Linux sever with standard commands such as tar, awk, scp and others. This is also useful if you are using old Linux distribution such as Redhat 9 or Debian 2.x.

Following files/dirs are required for traditional Linux user management:
* /etc/passwd - contains various pieces of information for each user account

* /etc/shadow - contains the encrypted password information for user's accounts and optional the password aging information.
[click to continue…]

FreeBSD locking an account

The pw utility is a command-line utility for the FreeBSD system user and group files, allowing the superuser an easy to use and standardized way of adding, modifying and removing users and groups. Same utility provides ability to locking or unlocking FreeBSD user accounts.

FreeBSD locking an account command

pw lock {username}


Lock user account named vivek. Login as a root user and type following command:

# pw lock vivek

FreeBSD unlocking an account command

pw unlock {username}


Unlock user account named vivek. Login as the root user and type the following command:

# pw unlock vivek

See also:

Mysql User Creation: Setting Up a New MySQL User Account

How do I create a user account on MySQL database server?
[click to continue…]