LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-24-2005, 08:38 PM   #1
Cool_Hand_Luke
Member
 
Registered: Feb 2005
Posts: 40

Rep: Reputation: 15
User Accounts


Ok I have been using Linux for 4 months now as Root. I have decided to create a new account to use as I have heard using root all the time is bad.

I am running Mandrake 9.1 and went into the Control Panel and started userdrake. After creating the account I logged out and back into the new account.

It logs in but I can not do anything. I want to be able to browse directories in the terminal but I can't this is what is see when I go to terminal

bash-2.05$b

When I log in to KDE I get an error that it can't create a home directory.

In userdrake there are a bunch of groups. Do I need to add these to my account?


My overall objective is to create a new account where I can log in and manage the webserver files and move them around and stuff

Any help would be appreciated.

Thanks,

Luke
 
Old 08-24-2005, 08:46 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
your user would belong to the user group by default i believe. Didn't you have to create a regular user during the install? Maybe you already have a user by that name who knows. Regardless, running as a regular user, you'll still have to su to move any files outside of your /home dir. I wouldn't advise running as root simply b/c one mistake can be a big problem. look at the users you have and open /home and see if there are any directories in there.


What do you expect to see at the terminal?
type
ls /home

That will show you all dir in the /home dir
 
Old 08-24-2005, 08:58 PM   #3
Cool_Hand_Luke
Member
 
Registered: Feb 2005
Posts: 40

Original Poster
Rep: Reputation: 15
If I go to the terminal and type ls it says permission denied.

I can do nothing. THere is no home directory or anything. I have created 3 accounts now with userdrake and all have the same problems.
 
Old 08-24-2005, 09:06 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
try to cd /home/<username>

<username> being the user you are logged in as
 
Old 08-24-2005, 09:11 PM   #5
Cool_Hand_Luke
Member
 
Registered: Feb 2005
Posts: 40

Original Poster
Rep: Reputation: 15
It says no such directory..

This is very strange.. should I try and setup an account manually with out userdrake?

Do you know how to do that?
 
Old 08-24-2005, 09:19 PM   #6
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
should be
useradd -m -s /bin/bash johndoe
passwd johndoe


then it will ask you to enter the password twice.

Last edited by bosewicht; 08-24-2005 at 09:21 PM.
 
Old 08-24-2005, 09:35 PM   #7
Cool_Hand_Luke
Member
 
Registered: Feb 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks I created a user withour userdrake and it works like expected.

Thanks again for your help.

Cheers,

Luke
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User Accounts Verbal Kint Linux - Security 12 06-18-2005 01:11 AM
User Accounts Kemik Linux - Newbie 13 01-12-2005 05:24 PM
User Accounts MrJoshua Linux - General 3 01-10-2003 09:30 AM
User Accounts petey *BSD 4 09-26-2002 10:28 AM
User Accounts afair Linux - Newbie 3 09-19-2002 01:57 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration