Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-28-2011, 08:28 PM
|
#1
|
|
Member
Registered: Sep 2010
Posts: 41
Rep:
|
Ubuntu new user: cannot see new user in home directory
Hi guys,
i'm new to linux and just installed Ubuntu and decided to play around with it.
i just executed which supposedly creates a folder in the home directory '/home/test' but when i look in there i can't see it
i also did a
Code:
grep test /etc/passwd
which returns:
'test:x:1001:1001::/home/test:/bin/sh'
which i believe means it is meant to exist.
i'm really confused now..any help guys?
thanks!
Addendum:
I have also now noticed that when i log in and log back in i have the option to login as 'test' but it prompts me for a password which i did not set :s
Last edited by greenpool; 07-28-2011 at 08:43 PM.
Reason: corrected command for new user
|
|
|
|
07-28-2011, 08:36 PM
|
#2
|
|
Member
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 185
Rep:
|
the problem is- by default adduser doesn't create home directory use this command with -m option
use a different username than test as it already exists
|
|
|
1 members found this post helpful.
|
07-28-2011, 08:41 PM
|
#3
|
|
Member
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 185
Rep:
|
one thing- to learn linux use manuals of the command and the command is called -"man"
this will show you command's usage in detail....
have fun with ubuntu/linux
|
|
|
|
07-28-2011, 09:25 PM
|
#4
|
|
Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian
Posts: 5,350
|
When I first read greenpool's post, I tested it out on my Ubuntu box and ran "adduser test," then answered the questions to create a password. It did create a /home/test directory.
I know that different distros implement adduser differently (in CentOS, it simply creates the user; you have to run "passwd [username]" to create the password).
Just did it again:
Code:
root@[computername]:/home/[username]# adduser test
Adding user `test' ...
Adding new group `test' (1000) ...
Adding new user `test' (1000) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
(snip)
Is the information correct? [Y/n]
root@[computername]:/home/[username]# ls /home
frankbell test
root@[computername]:/home/[username]# ls /home/test
examples.desktop
root@[computername]:/home/[username]#
|
|
|
|
07-29-2011, 08:10 AM
|
#5
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
@frankbell
"adduser" and "useradd" are different commands.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:56 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|