Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 06:23:39 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ General Discussion
| |-+ Tech Corner
| | |-+ Linux Discussions and Help (Moderator: donecweb)
| | | |-+ user won't boot
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: user won't boot  (Read 2614 times)
donecweb
Administrator
Veteran
*****
Posts: 1 302


DonecWeb


« on: May 02, 2006, 03:33:57 AM »

I have a user all set up and looking like I wanted it to with most of the programs setup like I wanted them to be and now when I try to boot as that user I get error messages and when I try and switch user to that user from the root user the screen goes black and then reverts to the root user.

My question is how do I setup a user that has the same setup as another user so that the new user starts with the same settings? Also how can I back up a user and restore the user.
Report to moderator   Logged

DonEc Web

Links and accurate information provide the best answer, while garbage in provides garbage out.
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #1 on: May 02, 2006, 05:49:31 AM »

I have a user all set up and looking like I wanted it to with most of the programs setup like I wanted them to be and now when I try to boot as that user I get error messages and when I try and switch user to that user from the root user the screen goes black and then reverts to the root user.
I've not quite understand what you've did before and why user won't boot, I can try to give my guess if you describe steps which you've done and/or post last entries from /var/log/syslog file.

Quote
My question is how do I setup a user that has the same setup as another user so that the new user starts with the same settings?
if I understand correctly what you're looking for, here is solution how to create user called newuser with settings of olduser:
become root
adduser newuser
cd /home
cp -R olduser newuser
chown -R newuser newuser
chgrp -R newuser newuser

Generally if you only wish to give same look of desktop to the user you need to copy directories from home started with dot "."(which are kind of system directories hidden from user). So after creation process you may go to newuser directory with file manager like MidnightCommander and delete the rest of files.

WARNING! if you create this user for other person it could be dangerous as it would possess all files from your desktop and could get other private data stored in your home directory.

Quote
Also how can I back up a user and restore the user.
I'm backing up data from home directory and some other places by a script which is runned by crontab. If you're interested I can post it here later with explanation how adapt it to your system.
But if the only place you need to back-up is home directory here is solution:
become root - (this is just in case if your /home directory isn't readable by users.)
cd /home
tar jcvf backup-user.tar.bz2 userdirectory - This would create archive named backup-user.tar.bz2 which would preserve file permissions and ownership, it could be burned to CD safely and stored as backup.

Once you need data simply use some archive or file manager which could deal with archives, alternatively you can extract whole archive using console like this:
tar jxvf backup-user.tar.bz2

Hope that was what you're looking for.
Report to moderator   Logged

Denis
donecweb
Administrator
Veteran
*****
Posts: 1 302


DonecWeb


« Reply #2 on: May 02, 2006, 09:41:13 PM »

Thanks Denis. Let's see if I understand what you are saying here.

become root
Means log in as root?

adduser newuser
understood.

cd /home
Change directory to home?

cp -R olduser newuser
copy root of old user to newuser?

chown -R newuser newuser
Don't understand.

chgrp -R newuser newuser
Don't understand.
Report to moderator   Logged

DonEc Web

Links and accurate information provide the best answer, while garbage in provides garbage out.
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #3 on: May 02, 2006, 11:05:24 PM »

become root
Means log in as root?
that's right, you can either login as root or execute su command in terminal which would ask you for root password.

Quote
cd /home
Change directory to home?
that's right, it would be easier to perform things from here as you can put relative paths instead of absolute ones.

Quote
cp -R olduser newuser
copy root of old user to newuser?
this would copy home directory and all subdirectories and files inside them of old user to home directory of new user(but I guess it would work only on usual user directories, if you try to do it with root there could be some problems, but I'm not sure as never tried to do this).

Quote
chown -R newuser newuser
Don't understand.

chgrp -R newuser newuser
Don't understand.
[/quote]
Each file in Linux has it's owner and also belong to some group. Generally all files inside user home directory should belong to him and also to his group. so by these two command we change ownership(chown) and change group (chgrp) to new user.

here is another example which should be more easier to read:
chown -R owner-name directory-or-file
chown -R name-of-group directory-or-file


Because command have key -R which means recursive it would apply changes not just to main directory but to files inside it and subdirectories.
Does it make things more clear?
Report to moderator   Logged

Denis
Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ General Discussion
| |-+ Tech Corner
| | |-+ Linux Discussions and Help (Moderator: donecweb)
| | | |-+ user won't boot

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!