Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
10-12-2007, 01:35 PM
|
#1
|
Member
Registered: May 2006
Location: Egypt
Distribution: RedHat 9.0, Ubuntu 6.06 and Slackware 11
Posts: 54
Rep:
|
create new user
Hi all,
I think adding a new user to linux system is an easy task, but that is not happening in slackware 11 :S
The problem is that I already have a directory named /home/daz that contains files an dirctories for my user when i was working in the old districution; ubuntu.
I want to add a new users called daz and make that directory "/home/daz" as its home directory, but in slackware11 i think it is a diffecult task
please help me, oh, I am trying this from the dropline gnome desktop env.
I have tried that and the "User and Groups" program allows to create the user and assign that directory to him, and when i login with the new user from the command line, every thing works fine but when i try to login from gdm, it says that it cannot as gdm not authorized to write and then the gdm forward me to the login screen again.
please help
|
|
|
10-12-2007, 01:46 PM
|
#2
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Maybe because of the fact that you're a Gnome user, you do not know that there is a commandline available to the Linux user?
Try running "adduser", tell it to create a new user "daz", answer all the other questions in a way you see fit and when the program asks if you want to re-sue the existing directory /home/daz say "yes". If it asks to change ownership of "/home/daz" so that your new account will be it's new owner, say "yes" as well.
It can't be simpler. The GUI is not everything.
Your problem at the moment is most likely the fact that this graphical program forgot to change the ownership of the existing /home/daz directory and now the account daz is not the owner of /home/daz ... and cannot write to it.
As root, run
Code:
chown -R daz /home/daz
to fix that.
Eric
|
|
|
10-12-2007, 01:50 PM
|
#3
|
Member
Registered: Mar 2006
Location: Delft NL
Distribution: Debian; Slackware; windows 7
Posts: 218
Rep:
|
are u still using ubuntu (duel boot).
if not you could save /home/daz somewhere else(tarball it or sommit)
then remove the current daz user and create a new one with the default /home/daz
remember to save all the files you want somwhere that isnt gonna be trashed by this process!!
|
|
|
10-12-2007, 02:04 PM
|
#4
|
Member
Registered: May 2006
Location: Egypt
Distribution: RedHat 9.0, Ubuntu 6.06 and Slackware 11
Posts: 54
Original Poster
Rep:
|
I think it is toooo big fault that i couldn't understand :S
I tried more and more and lastly wanted to create a clean user.
I wanted to create a new user account that i have never used its name before and this the result of adduser command :
Quote:
root@compu10:~# adduser
Login name for new user []: mohammed
User ID ('UID') [ defaults to next available ]:
Initial group [ users ]:
Additional groups (comma separated) []:
Home directory [ /home/mohammed ]
Shell [ /bin/bash ]
Expiry date (YYYY-MM-DD) []:
New account will be created as follows:
---------------------------------------
Login name.......: mohammed
UID..............: [ Next available ]
Initial group....: users
Additional groups: [ None ]
Home directory...: /home/mohammed
Shell............: /bin/bash
Expiry date......: [ Never ]
This is it... if you want to bail out, hit Control-C. Otherwise, press
ENTER to go ahead and make the account.
Creating new account...
Changing the user information for mohammed
Enter the new value, or press ENTER for the default
Full Name []: Mohammed Hewedy
Room Number []:
Work Phone []:
Home Phone []:
Other []:
New UNIX password:
BAD PASSWORD: it is too short
Retype new UNIX password:
passwd: password updated successfully
Account setup complete.
|
and when i wanted to login using that new user account an error occured telling me that "you can not login as you loged from 10 seconds and error ocuured ... ".
bla bla bla, what a bad thing !!!!!!!!!!!!!!!!!
I Want a way to add a new user in slackware, just a new user with a new directory, ooops :S :S :S
Last edited by daziplqa; 10-12-2007 at 02:06 PM.
|
|
|
10-12-2007, 02:09 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Try to log in on the command-line, and don't blame slackware for
"cleverness" you introduced by installing Gnome. :P
Cheers,
Tink
|
|
|
10-12-2007, 02:12 PM
|
#6
|
Member
Registered: May 2006
Location: Egypt
Distribution: RedHat 9.0, Ubuntu 6.06 and Slackware 11
Posts: 54
Original Poster
Rep:
|
every user account i created login from the command line well, but the problem here in logining in from the gdm
please help me
|
|
|
10-14-2007, 08:49 AM
|
#7
|
Member
Registered: Apr 2006
Distribution: Fedora
Posts: 478
Rep:
|
Hello,
The way I understand it, you had a previous use named daz when you used ubuntu and now you want to create a new user named daz in your current slackware.
I am going to assume several things, so please inform me if any of these things are inaccurate so that I can amend the advice. I assume that you no longer are using ubuntu, at least not using ubuntu under the user daz. That is there is no user daz for ubuntu and that the name is free to use. I am going to assume that there is data in /home/daz that you want to save and that you haven't destroyed that data yet. I am going to assume that you attempted to create a user daz already in slackware.
Given these assumptions, this is the course of action I would take:
In Slackware:
1. Open a terminal.
2. Enter the command 'cp /home/daz /home/old_daz' - you can rename it anything you want. This will backup the important data in the directory /home/daz. Use the cp command and not the mv command.
3. Enter 'su'.
4. Enter 'userdel -r daz'. This will get rid of the user daz from the system, including the home and mail directories (which is why you saved the data in step 2).
5. Enter 'adduser'. Go through all the steps to creating the new user.
6. Exit terminal. Logoff current user and try to login as daz. It may kick back to you once or twice before letting you finally login the first time.
I hope this helps and let me know how it works out for you.
|
|
|
All times are GMT -5. The time now is 07:58 AM.
|
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
|
|