LinuxQuestions.org
Review your favorite Linux distribution.
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 04-10-2003, 06:23 PM   #1
captain_bogus
LQ Newbie
 
Registered: Apr 2003
Location: Houston, Texas
Distribution: Slack 9.1 - 2.6.6
Posts: 21

Rep: Reputation: 15
Locked out


Newbie question number 1 of 863:

Apparently I failed to give myself permission to edit files in my /etc folder. In fact, I don't seem to have permission to open some of my own folders. I thought I was root. I'm the only account on this system. I'm running Mandrake 9.1. How do I give myself permission to do whatever I want? lol, sounds like a funny question.

Also upon attempting to edit my user profile I seemed to mess up something. When I click on "UserDrake" in the control center it now tells me "Cannot lock user lib, file/etc/ptmp or /etc/gtmp exist"

Help!
Thanks
 
Old 04-10-2003, 06:24 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
nah, that just means that the app crashed at a bad point last time you used it or somethign like that. as long as you don't have anything else open that would be editing the profiles, just delete those lock files listed there.
 
Old 04-10-2003, 06:26 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
When you say you are the only user on the system does that mean you are loggin in withthe username "root"?

You must use the username root to get root access. Or login as a user then type "su"and enter the root password.
 
Old 04-10-2003, 07:18 PM   #4
captain_bogus
LQ Newbie
 
Registered: Apr 2003
Location: Houston, Texas
Distribution: Slack 9.1 - 2.6.6
Posts: 21

Original Poster
Rep: Reputation: 15
Well, it won't let me type in a name when I log. It's a graphical interface and your supposed to click on the user and log in as that user. There is only one user and he doesn't have permission to do anything bad to the system...like fix it, lol, or add a user to the system, like "root". Sigh, any ideas?
 
Old 04-10-2003, 07:23 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
"Ctrl + Alt + F3" then login as "root".

Type "startx -- :1" (Yes guys I know this isn't reccomended but it is the easiest way for someone used to a gui)

You should then have access to what ever you want. Once you have finished:
logout
Type "exit"
Then "Ctrl + Alt + F7"
 
Old 04-10-2003, 07:44 PM   #6
captain_bogus
LQ Newbie
 
Registered: Apr 2003
Location: Houston, Texas
Distribution: Slack 9.1 - 2.6.6
Posts: 21

Original Poster
Rep: Reputation: 15
Yes! Now I can do some damage! Worst case I have to reinstall. Many thanks David. LOL, the screen is all red to warn me that I can do some serious damage from here. How else am I supposed to learn how something works if I can't break is a few times =) ?

Thanks!
 
Old 04-10-2003, 10:16 PM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
evedently you aren't using gdm or kdm as your login mamager, as those allow you just to type in the login and password
you should be able to select that (if it's installed) by editing the /etc/inittab file
 
Old 04-11-2003, 06:30 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You probably selected to autologin your user during the install process. You can change that back via Mandrake control center.

You could give your user all of the permissions of root or login as root all of the time but that is not a wise idea. Besides from security issues with one slip of the keyboard you could delete your entire system.

Another method (command line )to login in as root is to open up a console window i.e xterm etc and use the su command. Type in the root password at the prompt. Take care of business. Then ype in exit to return to user.
 
Old 04-11-2003, 08:09 AM   #9
captain_bogus
LQ Newbie
 
Registered: Apr 2003
Location: Houston, Texas
Distribution: Slack 9.1 - 2.6.6
Posts: 21

Original Poster
Rep: Reputation: 15
I have so much to learn. I'm used to feeling like I have complete control over my system in ms windows. I'm going to try a new login manager, the Mandrake login thing is a bit cheesy.

Am I understanding correctly? "Root" shouldn't use the gui? How does one edit files as root then?

For example: I wanted to edit /etc/fstab to make my Sandisk flash memory card reader work. I managed to do that by using the method david_ross described above and opening the file with Kwriter. It that not the way this type of thing is normally done?

Thanks
 
Old 04-11-2003, 03:14 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I don't think he has autologin - You need to specify which accounts you want to appear in the login menu when you are setting up the display manager.
 
Old 07-22-2003, 07:30 AM   #11
burgundy
LQ Newbie
 
Registered: Jul 2003
Posts: 22

Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
nah, that just means that the app crashed at a bad point last time you used it or somethign like that. as long as you don't have anything else open that would be editing the profiles, just delete those lock files listed there.
What's the command for this? I managed to do the same exact thing, and I'm a *complete" newb.

Thanks.

Last edited by burgundy; 07-22-2003 at 07:32 AM.
 
Old 08-11-2003, 05:32 PM   #12
Pigbook1
LQ Newbie
 
Registered: Aug 2003
Location: both sides of the USA
Distribution: Mandrake 9.1
Posts: 1

Rep: Reputation: 0
as root:
rm /etc/gtmp
y
rm /etc/ptmp
 
  


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
locked out kwickcut Mandriva 6 11-14-2005 11:09 PM
Locked out of SU... wiskic10_4 Linux - Newbie 6 12-03-2004 07:49 PM
Locked out of RH 9 carmoda Linux - Security 3 12-16-2003 10:44 AM
Locked out downinthemine Mandriva 1 10-28-2003 05:00 PM
locked out of X VioLaToR Linux - Newbie 15 11-12-2002 05:36 AM


All times are GMT -5. The time now is 01:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration