Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Running irc as non-root

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    35

    Default Running irc as non-root

    I cannot seem to figure out how to run my irc (using pidgin) client as a non-root user. Every time I get errors about not being able to access the display. I feel like this has to do with the fact that a regular user can't access root's x session, but not sure because i am far from a linux guru.

    Any ideas how to run pidgin as another user from BT5?

    I've tried su and sudo with no luck, here is the error message I get:

    No protocol specified

    (Pidgin:3361): Gdk-CRITICAL **: gdk_display_get_name: assertion `GDK_IS_DISPLAY (display)' failed
    Pidgin 2.6.6

    ** (Pidgin:3361): WARNING **: cannot open display: unse

  2. #2
    Senior Member
    Join Date
    Jul 2011
    Posts
    236

    Default Re: Running irc as non-root

    What if anything does this have to do with Back|Track?

  3. #3
    Senior Member
    Join Date
    Jan 2010
    Posts
    126

    Default Re: Running irc as non-root

    i cannot duplicate your particular problem with pidgin 2.6.6., but why not use xchat or other client anyway for irc? apt-get install xchat.

    pidgin isn't very great for an irc client.

  4. #4
    Junior Member
    Join Date
    Jan 2010
    Posts
    35

    Default Re: Running irc as non-root

    So how are you running it as another user while logged in as root?

  5. #5
    Senior Member cgelici's Avatar
    Join Date
    Feb 2010
    Location
    /root
    Posts
    121

    Default Re: Running irc as non-root

    I am able to run pidgin as root just fine. With MSN, Gtalk and IRC active. And I like it too. Maybe purge and reinstall ?

  6. #6
    Junior Member
    Join Date
    Jan 2010
    Posts
    35

    Default Re: Running irc as non-root

    I can run pidgin as root, but I want to force it to run as another user other than root. So, I am logged in as root. I create a new user named "ircuser" and thought i could do a "su - ircuser pidgin", but I get the errors above. Any thoughts on how to do this?

  7. #7
    Member longjidin's Avatar
    Join Date
    Feb 2010
    Location
    Kg Lengkong to Bukit Lada
    Posts
    93

    Default Re: Running irc as non-root

    ermm......i used the firefox addon called ChatZilla https://addons.mozilla.org/en-US/fir...don/chatzilla/ its run from firefox direct

    happy hunting!!!

  8. #8
    Senior Member cgelici's Avatar
    Join Date
    Feb 2010
    Location
    /root
    Posts
    121

    Default Re: Running irc as non-root

    Quote Originally Posted by Kx499 View Post
    I can run pidgin as root, but I want to force it to run as another user other than root. So, I am logged in as root. I create a new user named "ircuser" and thought i could do a "su - ircuser pidgin", but I get the errors above. Any thoughts on how to do this?
    Why not login as the normal user ? Defies the usability of backtrack but maybe pidgin will work then

  9. #9
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    11

    Default Re: Running irc as non-root

    The issue comes down to the other user not having access to your x server.

    Some people will suggest you do something like 'xhost +' but that is pretty unsecure.
    Use sudo to run the program as your other user and then configure your /etc/sudoers file to pass along the XAUTHORITY.

    Or if you want to have some fun before you run it allow the other user to use your magic cookie for the x server and you'll be good to go.

    I did something similiar where I made a "nonet" user who had all of his traffic blocked completely in iptables via uid. If I wanted to run something making sure it couldn't phone home
    I would use sudo to run it as the "nonet" user using my magic cookie to use the current x server session.

    nmcbride

  10. #10
    Senior Member voidnecron's Avatar
    Join Date
    May 2010
    Posts
    132

    Default Re: Running irc as non-root

    Quote Originally Posted by Kx499 View Post
    I can run pidgin as root, but I want to force it to run as another user other than root. So, I am logged in as root. I create a new user named "ircuser" and thought i could do a "su - ircuser pidgin", but I get the errors above. Any thoughts on how to do this?
    If I recall correct, the command should be
    Code:
    su - ircuser -c pidgin
    But check if the ircuser has a valid home and the pidgin files are writable by just logging in as ircuser and startx/pidgin.
    "The difference between RAID1 and RAID0 is that the zero stands for how many files you're gonna have after a harddisk failure."

Page 1 of 2 12 LastLast

Similar Threads

  1. how to get root
    By jae99 in forum Beginners Forum
    Replies: 4
    Last Post: 02-26-2010, 03:38 AM
  2. Kismet running in root
    By arcutha in forum Beginners Forum
    Replies: 6
    Last Post: 02-05-2010, 12:18 PM
  3. running root permissions? <admin edit>
    By Toshihiko in forum OLD Newbie Area
    Replies: 6
    Last Post: 07-30-2009, 05:08 AM
  4. Replies: 8
    Last Post: 03-30-2009, 07:39 PM
  5. Running as root
    By m0untainrebel in forum OLD Newbie Area
    Replies: 2
    Last Post: 12-21-2007, 11:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •