Linux / UNIX Tech Support Forum
This is a discussion on Create new user account in Ubuntu Linux from command line within the Getting started tutorials forums, part of the Linux Getting Started category; Tutorial - How do I create new user account in Ubuntu Linux from command line? Use useradd command create a ...
Register free or login to your account to remove all advertisements.
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
As far as I experienced you are logged in for less than 10 seconds.
It says Your home directory is listed as: /home/scheiber but is does not appear to exist. When trying to acces the important files it says 'unsufficient privilege' How do i make the account fully operational? I only have the single user account and the root password Regards Arie |
|
||||
|
Some distro configures useradd / adduser commands to create a directory while adding a user account. I suggest you use -m switch to create home directory for new user.
Code:
useradd -m -s /bin/bash userName passwd userName Code:
cd /home ls -l mkdir scheiber chmod 0700 scheiber chown -R scheiber:scheiber scheiber
__________________
Vivek Gite |
|
||||
|
you can also define the home directory my appending -d following with the path of the directory..
for more detailed explanation on useradd command.. type man useradd in terminal
__________________
Linux ![]() windows
|
| The Following User Says Thank You to vamsi For This Useful Post: | ||
scheiber (9th February 2010) | ||
![]() |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to create multiple user account? | droidwork | Shell scripting | 11 | 23rd February 2008 01:35 PM |
| Ubuntu Linux add a user to group | sweta | Ubuntu / Debian | 0 | 1st November 2007 02:41 AM |
| Command line remote access | angelus_kit | Networking, Firewalls and Security | 7 | 5th September 2007 06:30 PM |
| HP UX create or add users from command line using useradd | rockdalinux | HP-UX | 0 | 20th December 2006 02:13 PM |
| HP UX creating user account with SAM - it is easy to use | rockdalinux | HP-UX | 0 | 20th December 2006 02:01 PM |