Re: My screw up
If you're on Mandrake 10 official, try this: System - Configuration - KDE - System - Login Manager You'll be asked for your root password. Click on the User tab, and then untick root in the Hidden Users box. Logout, and voila! you should have root on the login screen. Of course, I'm assuming you're using KDE desktop. If this doesn't work, I shall sit quietly till I come up with another smartass idea to annoy the list. Cheers, Edwin From: Ross Drummond [EMAIL PROTECTED] Date: 2005/09/14 Wed PM 03:13:08 GMT+12:00 To: linux-users@it.canterbury.ac.nz Subject: Re: My screw up Um no. One of the oddities of Mandrake 10, Kelvin's distro, is that it does not have file manager super user mode One of my previous posts to the list details a work around for this deficiency. Go to; http://lists.ethernal.org/cantlug-0505/msg00255.html Cheers Ross Drummond On Wed, 14 Sep 2005 14:09, Roger Searle wrote: If you are needing to browse through the directory structure as a root user, you will have File Manager - Super User Mode somewhere on your menu. (On my suse laptop, I go System File Manager. I'm not sure where it is in Mandrake but I'm sure it is there and similar) Roger
Re: My screw up
Tried to do things the Ross way: http://lists.ethernal.org/cantlug-0505/msg00255.html but I couldnt get things to happen for me. Then tried the Edwin way: ** System - Configuration - KDE - System - Login Manager You'll be asked for your root password. Click on the User tab, and then untick root in the Hidden Users box. Logout, and voila! you should have root on the login screen. ** Cheers Edwin, that worked a treat. Now its back to the post by Ross to see what I can do. Regards Kelvyn
Re: My screw up
Please don't log in to X as root. It is a bad practice. Take the earlier advice and use an xterm in kelvyn's login and use su to become root. On Thu, 15 Sep 2005 10:18:36 +1200 motivated wrote: Tried to do things the Ross way: http://lists.ethernal.org/cantlug-0505/msg00255.html but I couldnt get things to happen for me. Then tried the Edwin way: ** System - Configuration - KDE - System - Login Manager You'll be asked for your root password. Click on the User tab, and then untick root in the Hidden Users box. Logout, and voila! you should have root on the login screen. ** Cheers Edwin, that worked a treat. Now its back to the post by Ross to see what I can do. Regards Kelvyn -- Nick Rout [EMAIL PROTECTED]
Re: My screw up
From Nick: Please don't log in to X as root. It is a bad practice. Take the earlier advice and use an xterm in kelvyn's login and use su to become root. Nick I tried that and I do believe I followed the advice to the 'T', but I still couldnt open half of the directories. What I will do, if it is s bad, is go back to the link Ross gave and post my problems from there. I do not fear working as root, I'm not going to delete anything, and all I'm changing is httpd.conf, possibly my php.ini later, but its only the php, apache, mysql stuff I need access to. Best to learn the correct way of doing things, I guess. Regards Kelvyn.
Re: My screw up
Nick, It is bad/good practice to login as root. If you have multiple things to setup install yast etc then logging in as root is great - saves you typing the root password in all the time. If you want to write files etc in your account, surf the net, join chat rooms, etc (as root) it is bad practice It is one of the steps to learning - you need to make a few mistakes to find things out for yourself. == To become root, it is better to use an xterm and do ssh -X [EMAIL PROTECTED] cause then you can open the graphical tools and do things. You do not have those pesky messages about no permission to open X window type message. Simply doing su - and entering the root password on a suse 9.2 box will mean you cannot open a graphical tool. And, lets face it, there are many times when you do want to open a graphical tools as root on the box (such as ethereal to monitor network traffic). Derek. On Thu, 15 Sep 2005, Nick Rout wrote: Please don't log in to X as root. It is a bad practice. Take the earlier advice and use an xterm in kelvyn's login and use su to become root. -- Derek Smithies Ph.D. Any fool can write code that IndraNet Technologies Ltd.a computer can understand. Email: [EMAIL PROTECTED] Good programmers write code ph +64 3 365 6485 that humans can understand. Web: http://www.indranet-technologies.com/Martin Fowler
Re: My screw up
To become root, it is better to use an xterm and do ssh -X [EMAIL PROTECTED] ssh -X [EMAIL PROTECTED] is more efficient. However, for this to work, you need a correctly configured ssh daemon running on your workstation. This is not always the case in a default install. Specifically, once the sshd software is installed, the sshd_config file ( usually in /etc/ssh ) must contain the line PermitRootLogin yes otherwise it won't work. ( daemon restart is necessary if this change needs to be made ) Steve -- Windows: Where do you want to go today? MacOS: Where do you want to be tomorrow? Linux: Are you coming or what?
Re: My screw up
On Thu, 15 Sep 2005 10:54:26 +1200 (NZST) Derek Smithies wrote: To become root, it is better to use an xterm and do ssh -X [EMAIL PROTECTED] cause then you can open the graphical tools and do things. You do not have those pesky messages about no permission to open X window type message. Simply doing su - and entering the root password on a suse 9.2 box will mean you cannot open a graphical tool. And, lets face it, there are many times when you do want to open a graphical tools as root on the box (such as ethereal to monitor network traffic). sux - will give you the ability to run X apps. However i thought that all kelvyn wanted to do was edit httpd.conf. You don't need any X tools to do that. Thats why i suggested using su. -- Nick Rout [EMAIL PROTECTED]
Re: My screw up
Hi, sux - will give you the ability to run X apps. However i thought that all kelvyn wanted to do was edit httpd.conf. You don't need any X tools to do that. Thats why i suggested using su. Agreed - he does not need to run X tools for what he wants. But not quite. many people feel more comfortable running gui editors than ones like vi/emacs/pine etc. Agreed also that ssh may not work cause there is no ssh server running. However, one is always aware that people will read our answers, and attempt to apply them to their problem (which will be different to Kelvyn's problem.) Derek. == -- Derek Smithies Ph.D. Any fool can write code that IndraNet Technologies Ltd.a computer can understand. Email: [EMAIL PROTECTED] Good programmers write code ph +64 3 365 6485 that humans can understand. Web: http://www.indranet-technologies.com/Martin Fowler
Re: My screw up
On Thu, 15 Sep 2005 10:46, motivated wrote: From Nick: Please don't log in to X as root. It is a bad practice. Whilst that was without doubt true in the past X-11 has improved markedly in recent times, so much so that I am happy to use X-11 as root for specific tasks. I don't do it often though. Take the earlier advice and use an xterm in kelvyn's login and use su to become root. Nick I tried that and I do believe I followed the advice to the 'T', but I still couldnt open half of the directories. You can't be the root user then. Is the character at the end of the bash prompt a # or a $ ? What do the commands:- whoami who am i or even the simple 'id' command have to say on the matter? I don't know which distro. you are using and to what extent they have altered the standard KDE menus, but there are sometimes entries for Konqueror and Konsole to run as the root user. You have to input the root password to activate them. I find them both useful, I expect you would too. Try K - System - More Applications. You might find them in there. -- CS
My screw up
I must be suffering from a short memory. When I boot up I get automatically logged in and end up at my desktop, logged in as Kelvyn. How do I log in from there as Root, because I cant get access to half my files. I tried opening the terminal and logging in there as Root, but that didnt do it. Theres going to be a bunch of questions coming tonite. Thanks Regards Kelvyn.
Re: My screw up
CtrlAltBackspace will take you back to the login screen ciao Lance motivated wrote: I must be suffering from a short memory. When I boot up I get automatically logged in and end up at my desktop, logged in as Kelvyn. How do I log in from there as Root, because I cant get access to half my files. I tried opening the terminal and logging in there as Root, but that didnt do it. Theres going to be a bunch of questions coming tonite. Thanks Regards Kelvyn.
Re: My screw up
CtrlAltBackspace will take you back to the login screen Nice try, but.. No it doesn't. It just auto logs me in again as Kelvyn. Ross logged me in as root from the desktop last nite, because we went into the httpd.conf file which I have to be logged in as root to get at. I was having so much fun and seeing that many different things last nite, I just couldn't retain it all. Regards Kelvyn
Re: My screw up
open an xterm (konsole, whatever) on your desktop and type su enter you will be prompted for the root password you are now root. be careful! On Wed, 14 Sep 2005 13:53:45 +1200 motivated wrote: CtrlAltBackspace will take you back to the login screen Nice try, but.. No it doesn't. It just auto logs me in again as Kelvyn. Ross logged me in as root from the desktop last nite, because we went into the httpd.conf file which I have to be logged in as root to get at. I was having so much fun and seeing that many different things last nite, I just couldn't retain it all. Regards Kelvyn -- Nick Rout [EMAIL PROTECTED]
Re: My screw up
this from me a couple of days ago: It's not necessary to log in as root. Of course you have to learn how to accomplish all these things while logged on as a normal user. For the command line stuff, I know a couple of options. Start up a normal shell prompt and type su, you will be asked for your root password. Alternatively you will have somewhere on your menu an option to start a root console which will also prompt you for your root password. If you are needing to browse through the directory structure as a root user, you will have File Manager - Super User Mode somewhere on your menu. (On my suse laptop, I go System File Manager. I'm not sure where it is in Mandrake but I'm sure it is there and similar) Armed with these 2 tools, you should not need to log in as root again and will be able to always log in as a normal user from now. I hope this helps a little. And to this I would add that if you need to edit some files as root, there are several ways of going about it. ONE WAY is to find the file in File Manager - Super User Mode, right click it and choose Open In Kate which will let you edit in a graphical editor. Apparently real men use weird stuff like vi... I can only aspire - at this stage - to ascend to such dizzy heights. I must say though that I can manage joe which is actually fun in a strange way (I don't get out much) (except the ocassional tuesday or thursday night). Roger motivated wrote: CtrlAltBackspace will take you back to the login screen Nice try, but.. No it doesn't. It just auto logs me in again as Kelvyn. Ross logged me in as root from the desktop last nite, because we went into the httpd.conf file which I have to be logged in as root to get at. I was having so much fun and seeing that many different things last nite, I just couldn't retain it all. Regards Kelvyn
Re: My screw up
On Wed, 14 Sep 2005 13:38, motivated wrote: How do I log in from there as Root, because I cant get access to half my files. You should change the ownership of the files to yourself so that you can get access to them as yourself. Open a virtual teminal ( Ctrl+Alt+F1 ) and login as root cd to the base directory of where your files are and execute this command:- chown -R kelvyn:users . Yes, that full-stop/period is supposed to be separated by a space. ( That's assuming that your login identity is actually 'kelvyn' ) This will change the ownership of all files and directories in the base directory and all subdirectories to you. Now log out from the terminal where you logged in as root before you have an accident. Ctrl+D, or the commands logout or exit. I tried opening the terminal and logging in there as Root, but that didnt do it. The login/user names are case sensitive. it's 'root', not 'Root'. -- CS
Re: My screw up
Hi, while it is not necessary to to log in as root, there are times when it is much much more convenient to log in as root. For example, when you want to run ethereal and examine the contents of the packets on the network. When logging in as root, you can be prevented from opening a graphical component (such as ethereal). This can raise the blood pressure. If you do ssh -X [EMAIL PROTECTED] it will ask you for a password, and let you past all that you are not allowed to access the display stuff. I certainly prefer to run yast in a windowing session, than inside a text console. Derek. On Wed, 14 Sep 2005, Roger Searle wrote: this from me a couple of days ago: It's not necessary to log in as root. Of course you have to learn how to accomplish all these things while logged on as a normal user. For the command line stuff, I know a couple of options. Start up a normal shell prompt and type su, you will be asked for your root password. Alternatively you will have somewhere on your menu an option to start a root console which will also prompt you for your root password. If you are needing to browse through the directory structure as a root user, you will have File Manager - Super User Mode somewhere on your menu. (On my suse laptop, I go System File Manager. I'm not sure where it is in Mandrake but I'm sure it is there and similar) Armed with these 2 tools, you should not need to log in as root again and will be able to always log in as a normal user from now. I hope this helps a little. And to this I would add that if you need to edit some files as root, there are several ways of going about it. ONE WAY is to find the file in File Manager - Super User Mode, right click it and choose Open In Kate which will let you edit in a graphical editor. Apparently real men use weird stuff like vi... I can only aspire - at this stage - to ascend to such dizzy heights. I must say though that I can manage joe which is actually fun in a strange way (I don't get out much) (except the ocassional tuesday or thursday night). Roger motivated wrote: CtrlAltBackspace will take you back to the login screen Nice try, but.. No it doesn't. It just auto logs me in again as Kelvyn. Ross logged me in as root from the desktop last nite, because we went into the httpd.conf file which I have to be logged in as root to get at. I was having so much fun and seeing that many different things last nite, I just couldn't retain it all. Regards Kelvyn -- Derek Smithies Ph.D. Any fool can write code that IndraNet Technologies Ltd.a computer can understand. Email: [EMAIL PROTECTED] Good programmers write code ph +64 3 365 6485 that humans can understand. Web: http://www.indranet-technologies.com/Martin Fowler
Re: My screw up
Um no. One of the oddities of Mandrake 10, Kelvin's distro, is that it does not have file manager super user mode One of my previous posts to the list details a work around for this deficiency. Go to; http://lists.ethernal.org/cantlug-0505/msg00255.html Cheers Ross Drummond On Wed, 14 Sep 2005 14:09, Roger Searle wrote: If you are needing to browse through the directory structure as a root user, you will have File Manager - Super User Mode somewhere on your menu. (On my suse laptop, I go System File Manager. I'm not sure where it is in Mandrake but I'm sure it is there and similar) Roger
Re: My screw up
Just to be sure, use su - , which will also import the root environment. It'll screw up X, ( 'cannot open display... ), but it will ensure the correct search path, including places like /sbin, /usr/sbin, etc. Steve. On Wed, September 14, 2005 2:09 pm, Roger Searle wrote: this from me a couple of days ago: It's not necessary to log in as root. Of course you have to learn how to accomplish all these things while logged on as a normal user. For the command line stuff, I know a couple of options. Start up a normal shell prompt and type su, you will be asked for your root password. Alternatively you will have somewhere on your menu an option to start a root console which will also prompt you for your root password. -- Windows: Where do you want to go today? MacOS: Where do you want to be tomorrow? Linux: Are you coming or what?
Re: My screw up
Given that httpd.conf was one of the files mentioned, I'd have to disagree with that. I'd also use xterm rather than ctrl-alt-f1 ( which only works if the gettys are running! ), as it's friendlier to your monitor. Steve On Wed, September 14, 2005 2:42 pm, Christopher Sawtell wrote: On Wed, 14 Sep 2005 13:38, motivated wrote: How do I log in from there as Root, because I cant get access to half my files. You should change the ownership of the files to yourself so that you can get access to them as yourself. Open a virtual teminal ( Ctrl+Alt+F1 ) and login as root cd to the base directory of where your files are and execute this command:- chown -R kelvyn:users . Yes, that full-stop/period is supposed to be separated by a space. ( That's assuming that your login identity is actually 'kelvyn' ) This will change the ownership of all files and directories in the base directory and all subdirectories to you. Now log out from the terminal where you logged in as root before you have an accident. Ctrl+D, or the commands logout or exit. I tried opening the terminal and logging in there as Root, but that didnt do it. The login/user names are case sensitive. it's 'root', not 'Root'. -- CS -- Windows: Where do you want to go today? MacOS: Where do you want to be tomorrow? Linux: Are you coming or what?