LinuxQuestions.org
Visit Jeremy's Blog.
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 01-10-2005, 05:31 AM   #1
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Rep: Reputation: 30
login incorrect problem


Hi ALL...

I am also having same problem when creating user..

look at my code ....

[root@redhat root]# adduser zameer3 -p icoachmath -u 1010 -g 100 -d /home/zameer3 -s /bin/bash
[root@redhat root]#

i am able to create user but not able to logged in with the user name...
any help would be appreciate.....

thnx in advance..
zameer ahmed syed..
 
Old 01-10-2005, 05:44 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
The -p option expects an already encrypted password... not the password you want to type in. Add the user without the -p option, and then as root, execute: passwd zameer3

That will change the password for zameer3 without having to encrypt it yourself.
 
Old 01-10-2005, 06:04 AM   #3
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
Hi Dark_Helmet...
Thnx for Ur Useful reply......
I got little bit success ... I followed you... as u mentioned.... but amazingly this error was coming and not able to login just look at once...

' Could not open or create the file "/home/zameer/.gconf-test-locking file" ..
this indicates there may be a problem with your configuration , as many as
programs will need to create files in your home directory... the error was
"permission denied" ' .Error no . 13

what to do ? any help would be appreciate...

zameer ahmed syed.
 
Old 01-10-2005, 06:21 AM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
The example you gave listed /home/zameer3 as the home directory. So I don't know why you're getting an error for /home/zameer unless you executed a different command than what you listed previously.

Some things to check though:
A) does the /home/zameer directory exist? If not, create it
B) does the user zameer have ownership and write permissions on the directory? If you're not sure, execute these commands:
chown zameer /home/zameer
chmod 700 /home/zameer
 
Old 01-10-2005, 06:32 AM   #5
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
thnx Helmet...

I followed two steps ..but no change in result..... me hanging here...

--zameer ahmed
 
Old 01-10-2005, 06:36 AM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
What command exactly did you type in to create the user, and what program are you trying to run that gives you this error?
 
Old 01-10-2005, 06:51 AM   #7
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
I used " add user " command to create user zameer6 (this is the name of the user which i created so far) ... and i update the password with passwd command as u metioned earlier... then i tried to login with zameer6... it asks

username : zameer6
then it asks
password : icoachmath

then that waiting process was came and i got this error .......

i am in totally confused mr. helmet....

with regds,
zameer
 
Old 01-10-2005, 06:57 AM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
You misunderstand, I want to see the command you typed in to create the user. I want you to copy the command exactly like you typed into the computer, and put in in a reply to this thread. I want to see each command you type from the point of creating a user to logging in.
 
Old 01-10-2005, 07:04 AM   #9
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
well ... helmet... sorry...
this is the command which i used to create .... i create user zameer6...
[root@redhat root]# adduser zameer6 -g 100 -d /home/zameer6 -s /bin/bash

and i checked the same command to create user zameer8 and done same process as before... i got same problem with this user also... i have to check with the user which i create from "users and groups" option...
 
Old 01-10-2005, 07:22 AM   #10
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Well, you still haven't told me how you're logging in: into a graphical environment or text, and you also didn't list every command from creating the user to logging in.

That aside, all I can do is offer this sequence of commands to create a user manually:
groupadd zameer99
mkdir -p /home/zameer99
chmod 777 /home/zameer99
useradd -d /home/zameer99 -g zameer99 -s /bin/bash zameer99
chown -R zameer99:zameer99 /home/zameer99
chmod 770 /home/zameer99
passwd zameer99
enter password


Then completely log out of the system (perhaps even reboot). Then try logging in with zameer99. If that does not get past your error message then my hands are tied. I don't know enough about what programs you're running or what you're trying to do to give any more advice with one exception:

Use Red Hat's User/Group Manager to create the user if you still have problems. If that fails, then there is something wrong with some configuration file in your system.

Good luck.
 
Old 01-10-2005, 07:25 AM   #11
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
Are you using Slackware?

If so, when using adduser do not add the rest of the information to the command, just type adduser and then hit enter. You will then be asked a series of questions about the user. If you want to do it in one command from the command line use useradd followed by the option.
 
Old 01-10-2005, 07:28 AM   #12
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
well helmet..... i tried entirely in text environment only..before text environment i create one user GUI mode which works fine ... now that user also not working ... i am getting the same problem... i am looking hell here... one more thing u know... after logging i found a new problem my entire home directory was disappear... then i created a new home directory...........

anywhere i am going to do the process which u metion now.... lets check what's happened....

thanx for u r patience and kind reply and interesting in my problem...

with regds,
zameer ahmed syed.
 
Old 01-10-2005, 07:29 AM   #13
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
No sharper ... me using Redhat LAS 3.0
 
Old 01-10-2005, 07:50 AM   #14
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
well Helmet.... after restarting and with u r coding i solved it.... still me in confused...
what's happened ???????? me in dilemma.... U great ..... could u plz explain what's happened with my code....? which mistake caused for this hell in my code...... i really appreciate if u explain me Ur code line by line... i am comparing Ur code ... iam not understanding in the follwowing line only ...

useradd -d /home/zameer99 -g zameer99 -s /bin/bash zameer99
after bash u used zameer99............... why?
me using default group 100 ...is this causes the entire hell in my code...

could you please explain about u r code ....if u don't mind line by line... i am in tired position .....i didn't forget Ur help in m life....

with regds,
zameer ahmed syed...
 
Old 01-10-2005, 07:53 AM   #15
zameer_india
Member
 
Registered: Sep 2004
Location: hyderabad
Posts: 210

Original Poster
Rep: Reputation: 30
Is restarting the system also one of the cause....? if so ... why? any help /suggestions/debating/questions/comments were most welcome and will be appreciate on this issue...


once again thnx to Helmet ,
with regds,
zameer ahmed syed....
 
  


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
linux login: incorrect login poweroff Linux - General 4 03-02-2004 03:03 PM
DEVFS login incorrect john8675309 Linux - General 0 12-21-2003 01:36 AM
vsftp Login incorrect tandre Linux - Software 2 04-28-2003 08:39 AM
Login incorrect Hawama Jabeen Linux - Networking 7 09-17-2001 07:48 AM
Login incorrect?? BrianG Linux - Networking 2 04-10-2001 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 PM.

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
Open Source Consulting | Domain Registration