Author Topic: sudo to startx??!  (Read 8336 times)

0 Members and 2 Guests are viewing this topic.

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
sudo to startx??!
« on: June 26, 2006, 03:20:55 pm »
Ok, so two nights ago I left "slapt-get --upgrade" running for me because, due to the fact that I'm on a fresh install of Slackware, my software was way behind.  Now, last time I did this I remember needing "libcairo.so.2" so before my upgrade I went and got cairo-1.0.2-i486-1.tgz from the Slackware ftp.  After the upgrade I opened Firefox to see if it worked, and I was running Firefox v1.5.0.4.
I turned off my computer and started it today.  I log in, whatever, "startx"
It gives me an error about not being able to access /home/deadly7/.ICEauthority and shut off X.
I did:
$ cd ~/
$ ls
And the file wasn't there.
So I tried "sudo startx"
And that worked.  Is there any workaround for this or am I just stuck with it?
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: sudo to startx??!
« Reply #1 on: June 26, 2006, 03:27:30 pm »
First of all, the reason you weren't able to see it is because it's dotICEathority. Just like bash history and whatnot, it won't show up in a ls. Try cd ~/ && pico .ICEathority
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: sudo to startx??!
« Reply #2 on: June 26, 2006, 03:42:37 pm »
ls -a
I like --dist-upgrade better. Followed by some --install-set [a/ap/d/etc..]
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: sudo to startx??!
« Reply #3 on: June 26, 2006, 03:50:37 pm »
Using --upgrade is a real nice way to break dependancies and kill your system.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: sudo to startx??!
« Reply #4 on: June 26, 2006, 04:08:15 pm »
You know, you guys suck at helping me. :p
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: sudo to startx??!
« Reply #5 on: June 26, 2006, 04:09:52 pm »
deadly: zomg, my system broke
Joe: --upgrade tends to do that
Ergot: Use --dist-upgrade
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: sudo to startx??!
« Reply #6 on: June 26, 2006, 04:33:12 pm »
deadly: zomg, my system broke
Joe: --upgrade tends to do that
Ergot: Use --dist-upgrade
Mmhmm! Just do what I said and next time keep an eye on the changelog. >:)
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: sudo to startx??!
« Reply #7 on: June 26, 2006, 10:10:48 pm »
Zomg even after dist-upgrade it no work unless I do sudo.
"/home/deadly7/.xinitrc: line 58: xcreensaver: command not found
Agent pid 1464
which: no dbus-launch in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:.)
xfce4-session: Unable to access file /home/deadly7/.ICEauthority: Permission denied
Agent pid 1464 killed"
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: sudo to startx??!
« Reply #8 on: June 26, 2006, 10:11:50 pm »
Quote
"/home/deadly7/.xinitrc: line 58: xcreensaver: command not found
xcreensaver? Man.. I wonder why it doesn't work?

EDIT -
touch ~/.ICEauthority
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: sudo to startx??!
« Reply #9 on: June 26, 2006, 10:56:00 pm »
touch joesmom

Offline wires

  • Pwnage
  • x86
  • Hero Member
  • *****
  • Posts: 1103
  • cocaine is fun!
    • View Profile
    • Weapon Of Mass Destruction
Re: sudo to startx??!
« Reply #10 on: June 26, 2006, 11:47:04 pm »
Go ArchLinux!  Haven't had any problems yet.  Easy to update too, without breaking anything. :)

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: sudo to startx??!
« Reply #11 on: June 27, 2006, 12:21:31 am »
Meh.
sudo chmod 0777 /home/deadly7/.ICEauthority
sudo chmod 0777 /home/deadly7/.Xauthority
gg
Closed.
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: sudo to startx??!
« Reply #12 on: June 27, 2006, 09:44:27 am »
Meh.
sudo chmod 0777 /home/deadly7/.ICEauthority
sudo chmod 0777 /home/deadly7/.Xauthority
gg
Closed.

0777 is dumb. 

It sounds like root owns your configuration files. 

do:
chown -R yourusername.users /home/yourusername

Then set the permissions on your home directory to 0700 (unless you're running a webserver; then it should be 0711). 

Then set your configuration files to 0700. 


Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: sudo to startx??!
« Reply #13 on: June 27, 2006, 09:57:59 am »
It works! :(
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: sudo to startx??!
« Reply #14 on: June 27, 2006, 10:46:48 am »
But it's dumb.  It gives anybody access to write to your files.  I don't care if you're the only user, using 0777 isn't something you should be accustomed to. 

If the owner is set properly, then 0700 will give you r/w/x access.  If it doesn't, then you don't own the file.  If you don't own the file, then "chown -R yourusername.users /home/yourusername" will fix it.  So do that instead.