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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-10-2005, 05:31 AM
|
#1
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Rep:
|
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..
|
|
|
01-10-2005, 05:44 AM
|
#2
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
01-10-2005, 06:04 AM
|
#3
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
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.
|
|
|
01-10-2005, 06:21 AM
|
#4
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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
|
|
|
01-10-2005, 06:32 AM
|
#5
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
thnx Helmet...
I followed two steps ..but no change in result..... me hanging here...
--zameer ahmed
|
|
|
01-10-2005, 06:36 AM
|
#6
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
What command exactly did you type in to create the user, and what program are you trying to run that gives you this error?
|
|
|
01-10-2005, 06:51 AM
|
#7
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
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
|
|
|
01-10-2005, 06:57 AM
|
#8
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
01-10-2005, 07:04 AM
|
#9
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
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...
|
|
|
01-10-2005, 07:22 AM
|
#10
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
01-10-2005, 07:25 AM
|
#11
|
Member
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121
Rep:
|
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.
|
|
|
01-10-2005, 07:28 AM
|
#12
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
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.
|
|
|
01-10-2005, 07:29 AM
|
#13
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
No sharper ... me using Redhat LAS 3.0
|
|
|
01-10-2005, 07:50 AM
|
#14
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
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...
|
|
|
01-10-2005, 07:53 AM
|
#15
|
Member
Registered: Sep 2004
Location: hyderabad
Posts: 210
Original Poster
Rep:
|
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....
|
|
|
All times are GMT -5. The time now is 06:21 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
|
|