LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2003, 08:34 PM   #1
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
Big XFree86 problems


This is my fault, so I won't blame Linux this time

I was changing the permissions on a user folder, and I ran this command as root
"chmod -x foldername" and it closed all the mozilla windows, and explorer windows. I figured I shoudl restart. When I went to the menu, it didn't give any option to restart, only to logout, so I did that. The screen flickered a few times then went to the command like login screen....when I try to run startx, it gives an error about no screens.

I tried using the backup config file, but still no go. I ran this: "XFree86 -configure" and auto configured everything, but when I ran it it went to a black screen with a white mousehair in the middle that I can move around....is that a good sign?

I use this box for servers, and I'm decently proficent with the command line, but I'd at least like X to work

Part of the reason is because I need to "Deactivate" and reactivate my network adapter everytime I startup, and I don't know how to do that through the command line....See the thread here is you have any suggestions about that http://www.linuxquestions.org/questi...hreadid=121726

Thanks for the help
 
Old 12-03-2003, 08:39 PM   #2
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Hmm...update. I read the log for the newly created Config file I just ran, and this line caught my eye:

"(WW) fonts.dir not found (or not valid)"

Were my fonts somehow deleted?
 
Old 12-03-2003, 08:43 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
maybe I am missing somthing, but why not change back the permissions on the folder. Isn't that what cause the problem?
 
Old 12-03-2003, 08:48 PM   #4
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Well, I ommited some details because I accidentially quitted out of IE while I was writing my original post (which was looooong) and I was too pissed to write about it again....anyway, I originally wanted the folder to have write permissions, but chmod +w didn't work so I tried chmod +x to see if any permissions could be changed, and that worked. I figured I should change it back to what it was, so I guessed that chmod -x does the opposite of +x.

So, since I already ran -x, it would be back to what it was, right? I'm a month old fyi
 
Old 12-03-2003, 09:22 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
can you startx as root
 
Old 12-03-2003, 10:30 PM   #6
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Nope, that doesn't work either.
 
Old 12-05-2003, 08:15 PM   #7
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
well, i fear in order to help we need more info on what dir you restricted access. was it ROOT's home?
However chmod -x on a folder doesn't make much sense: at least use
chmod 700 folder
to give owner full rights.

btw, i was once stuck for 3h 'cause i was editing the wrong XFConfig:
try X 2> /tmp/X.output
and carefully examine the output file (in particular: which config is it using?)
 
Old 12-05-2003, 08:23 PM   #8
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
It was just the home directory of a new user I created for ftp access. It was just empty, but I wanted to give write access to my user. I tried "chmod +w "foldername"" but that didn't seem to work. I just tried "chmod +e "foldername"" as a test if I could change the permissions of the folder at all, and it worked, and the folder was now apparently "executable". I figured I should undo what I just did, and assumed chmod -x "foldername" would reverse the process

About chmod 700, or 755, etc, is there a list somewhere what level of access all the different numbers are?

Thanks
 
Old 12-05-2003, 09:32 PM   #9
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
Originally posted by link1305
About chmod 700, or 755, etc, is there a list somewhere what level of access all the different numbers are?
Yes- here.

Basically, for "chmod xyz":

x= permisisons for the file/directory user/owner
y= permisisons for the file/directory group
z= permisisons for everyone

Each of the values for x, y, and z are additive, in that they are the sum of the following numeric equivalents for read, write, and execute (r-w-x):

read (r)= 4
write (w)= 2
execute (x)= 1

So obviously, the numeric representation of the permissions for the user, group, or everyone can at max be "7"; indicating full rwx permissions (4+2+1).

rw- permissions for all would be 666

rwx permisisons for owner, but only r-w perms for others in the group (and everyone else) would be 766

rwx permissions for owner, but only rx for all others would be 755

etc.
etc.
 
Old 12-07-2003, 05:28 PM   #10
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks a lot man, that helps a lot.
 
Old 12-07-2003, 07:28 PM   #11
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Cool, glad I could help.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Problems...big problems Goonie Linux - General 19 12-09-2006 05:44 PM
BIG XFree86/Rage128 Problem WesternStar Linux - Hardware 1 04-13-2004 06:36 PM
Big Trouble with XFree86 after apt-get dist-upgrade gamehack Debian 1 01-11-2004 09:49 AM
xfree86 mouse ps2 debian BIG PROBLEM ;(((( szwed Linux - Hardware 3 07-10-2003 04:42 AM
i810 and Xfree86 3.3.6 - big dillema :( gludeklis Linux - General 2 06-30-2002 04:14 AM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration