Author Topic: sudo to startx??!  (Read 8338 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. 

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: sudo to startx??!
« Reply #15 on: June 27, 2006, 10:59:43 am »
:\
I did it your way. Whatever.  I'm the only one in my family that even remotely knows how to use Linux. My brother's probably used Red Hat once or twice at work, but he doesn't make a habit of it.  He's sorta like War. :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 MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: sudo to startx??!
« Reply #16 on: June 27, 2006, 12:38:49 pm »
I don't care if you're the only user, using 0777 isn't something you should be accustomed to. 
QFT.  It's like solving a permissions problem on Windows by assigning the Everyone group Full Access.

It's just not smart.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: sudo to startx??!
« Reply #17 on: June 27, 2006, 01:45:37 pm »
I don't care if you're the only user, using 0777 isn't something you should be accustomed to. 
QFT.  It's like solving a permissions problem on Windows by assigning the Everyone group Full Access.

It's just not smart.
Yeah, that's how I eventually fixed Windows' permission problems.  But I think that it's an awful lot easier to assign permissions and access on Linux, because on Windows it seemed absolutely horrible. 

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: sudo to startx??!
« Reply #18 on: June 27, 2006, 02:57:19 pm »
As far as I knew, the UNIX-style permissions were three numbers. What's the 0 mean in 0777?
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 #19 on: June 27, 2006, 03:40:09 pm »
As far as I knew, the UNIX-style permissions were three numbers. What's the 0 mean in 0777?

Octal notation.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: sudo to startx??!
« Reply #20 on: June 27, 2006, 04:28:05 pm »
As far as I knew, the UNIX-style permissions were three numbers. What's the 0 mean in 0777?

Octal notation.

Correct.  Although chmod numbers are always octal, the leading 0 is added for the benefit of anybody reading it. 

The 0 can also be a 1, 2, or 4 for interesting effects.  Try it out!

Hint:
Quote
ron@South:~$ chmod 01700 test.txt; ls -l test.txt
-rwx-----T  1 ron users 0 2006-06-27 15:28 test.txt*

ron@South:~$ chmod 02700 test.txt; ls -l test.txt
-rwx--S---  1 ron users 0 2006-06-27 15:28 test.txt*

ron@South:~$ chmod 03700 test.txt; ls -l test.txt
-rwx--S--T  1 ron users 0 2006-06-27 15:28 test.txt*

ron@South:~$ chmod 04700 test.txt; ls -l test.txt
-rws------  1 ron users 0 2006-06-27 15:28 test.txt*

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: sudo to startx??!
« Reply #21 on: June 27, 2006, 08:31:03 pm »
I don't care if you're the only user, using 0777 isn't something you should be accustomed to. 
QFT.  It's like solving a permissions problem on Windows by assigning the Everyone group Full Access.

It's just not smart.
Yeah, that's how I eventually fixed Windows' permission problems.  But I think that it's an awful lot easier to assign permissions and access on Linux, because on Windows it seemed absolutely horrible. 

Again... it's because you don't know how to use it.  To me, it seems like Linux permissions are absolutely horrible.  And I even have a passing understanding of chmod!  :P
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: sudo to startx??!
« Reply #22 on: June 27, 2006, 09:55:13 pm »
Linux permissions are very simple, but perfectly functional, which I prefer.  Windows gets too complicated and make it too easy to make a mistake.  I've seen veteran Windows users fighting with permissions enough times...

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: sudo to startx??!
« Reply #23 on: June 27, 2006, 10:04:49 pm »
Linux permissions come in the form:

Owner, Everyone else, Root

and

Read, Write, eXecute (or special execute as the case may be).

Right?

NTFS permissions are much more granular, granting access to objects based on the thread context's Principal, which has its own security identity (SID) and group membership, where each group has its own SID.  NTFS permissions also are more granular as to what can be assigned; read, write, execute, and modify are the basic permissions, but there are also others which include the right to take ownership or backup.

So, where you say complicated, I see robust.  :P
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: sudo to startx??!
« Reply #24 on: June 28, 2006, 03:55:58 am »
I like Linux permissions, but if I were running a server for a larget network, I think I would prefer NTFS.

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: sudo to startx??!
« Reply #25 on: June 28, 2006, 03:11:32 pm »
I like to change peoples passwords at random, thats permissions for you!

(note: I don't really do that, but oddly enough a certain client accused a coworker of doing so :))