On Tue, 28 Sep 2004 13:51:35 +1200 Ralph Stoker <[EMAIL PROTECTED]> wrote:
> > > I discovered that my /var/lib/YaST2/you/youservers didn't exist, though > > could rectify this by copying it from another machine I have that also runs > > Suse and then things ran OK. I could email you a copy if you are in the > > same situation if that would help. > > The library exists file:/var/lib/YaST2/you/youservers but I cannot get in as > root to modify it as per Volker's instructions. Also not sure why YaST then > is unable to read the list of ten or so servers currently in the file. > Reason: Haven't discovered how to log on as root! > Every time I try to switch users to root I am taken to the YaST popup screen > after entering the root password. The only other way I know of becoming root > is to become a super user in the console window...but then I am not in a > graphical interface environment. I think you are confusing logging into a terminal, or a complete X session as root, with runniign one particular program as root when you run YAST you run it from your normal user session (lets call that user ralph), so everything else on your screen is running as ralph, but YAST runs under the root user id. Thats why you have to give the root password to start it. However all your other programs are running as ralph. if you want to edit a file that only root can edit then you need to: 1. go to a console screen or xterminal 2. login as ralph (an xterm will automatically log you in) 3. change user to root by running : su - it will ask for root's password and then anything you type is run by root. at that point you can use any command line editor to edit the file. 4. if you want to run graphical clients, like a gui editor, as root then you will fail because by default X does not allow other users to run stuff on ralph's screen (its a security thing). in that case open another xterm and you are logged in as ralph. run this command: xhost +localhost now any user on your machine can connect to your X server 5. go back to root's xterm and run whatever you want to run, in this case you wanted to edit a particular file so go kate /var/lib/YaST2/you/youservers and the creditworthy editor kate will open with the file reeady for editing. some words of warning: [1] this post involves some security risks, but in the situation of a single user system with no one else connected or connectable you should be ok. [2] i do not know the effect of editing /var/lib/YaST2/you/youservers - it may screw your system - Volker may be able to help [3] be very careful as the root user, you can delete your entire system or large chunks of it, once you are root anything goes. BE CAREFUL - there do i need to say it agin? > > I thought that when I was using YaST I was logged in as root...or does this > only apply to the YaST application itself? -- Nick Rout <[EMAIL PROTECTED]>
