thanks Ian for telling me that kdesu should be run as user. I did that & the command 'kdesu pup' does work.<br><br><div><span class="gmail_quote">On 6/27/07, <b class="gmail_sendername">Ian Malone</b> <<a href="mailto:ibmalone@gmail.com">
ibmalone@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ashley Pritchard wrote:<br>> hello,<br>><br>> I have recently installed Fedora 7 on my machine & got it working for the
<br>> most part ie...adding DVD, mp3 support etc...but now when I login to my<br>> user<br>> account from GDM into Gnome I am not able to use any programs that require<br>> root access. If the Package updater pops up with updates I click on view
<br>> packages & it asks for my root password. I enter it & nothing happens & it<br>> does the same thing for all programs that need root access.<br><br>Something wrong there.  You evidently know the password since
<br>you can get a login at the console.  What other programs that<br>need root access?<br><br>File a bug.  You need to find out why this is happening; everything<br>else is a workaround.<br><br>> I have tried disabling selinux, not installing selinux updates, deleting
<br>> the<br>> user account & creating a completely new user account with a different user<br>> name & I have also reinstalled the OS because of this issue and here I am<br>> back full circle. I have tried running the program through a terminal.
<br>> Loged<br>> in as root from my user account I tried running the command 'pup' for the<br>> package updater & I get the following info:<br>><br>> Xlib: connection to ":0.0" refused by server
<br>> Xlib: No protocol specified<br>><br><br><snip><br><br>><br>> It was suggested to me from someone on a listserve to try this command<br><br>It was in fact this list.  Please avoid starting a new thread for the
<br>same issue; people then have to go hunting for the previous discussion.<br><br>> 'xhost +localhost' & 'kdesu pup' so I did & got the following info:<br>><br>> [awp@localhost ~]$ xhost +localhost
<br>> localhost being added to access control list<br>> [awp@localhost ~]$ su root<br>> Password:<br>> [root@localhost awp]# xhost +localhost<br>> Xlib: connection to ":0.0" refused by server<br>> Xlib: No protocol specified
<br>><br><br>I'm not sure xhost +localhost is sufficient.  Incidentally<br>it's not expected that you then run it as root, you should<br>be trying to run pup at this point.  Is XAUTHORITY set?<br><br>> [root@localhost
 awp]# kdesu pup<br>> Xlib: connection to ":0.0" refused by server<br>> Xlib: No protocol specified<br>><br>> kdesu: cannot connect to X server :0.0<br>> so neither command resolved the issue.<br>
><br><br>kdesu should be run as a normal user: it's the kde equivalent<br>to the gnome administrator password dialog, and semantically<br>equivalent to sudo.<br><br>> Then it was suggested to that I was actually logging into root the wrong
<br>> way. Do not ask me how since 'su root' has been the way i logged into root<br>> since the old red hat days. So they said I should try 'su - root' so I did.<br>> Well it turns out that 'su - root' does the same thing as 'su root'
<br><br>It does not.  "su -" or "su -l" asks for a login shell,<br>environment variables like PATH will be set correctly,<br>not inherited from your existing shell.  "root" is taken<br>as read so 'su -l root' is equivalent to 'su -'.  However
<br>I don't find that not using a login shell prevents X apps<br>from working here.  When changing shell to root you /should/<br>use 'su -' (or 'su - root' if you prefer), 'su root' is a<br>security risk as your environment variables will be unchanged.
<br><br>Have you done anything odd to your hostname?  How are you<br>running the shell you use when su-ing to root?<br><br>--<br>imalone<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com
</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>Diolch yn fawr, Ashley