LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-13-2006, 12:32 PM   #16
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15

Well, I am going to try a couple more chmod combinations, then if that does not go well, I will just reinstall, btw, I was used to burning files to cd with gui, my gui went on the fritz a few weeks back, how would I burn something from the shell?
 
Old 07-13-2006, 01:05 PM   #17
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
Code:
root@nykey:~# ls -al /usr/
total 107
drwxr-xr-x  17 root root   520 2004-03-28 02:15 ./
drwxr-xr-x  19 root root   464 2006-07-13 20:07 ../
lrwxrwxrwx   1 root root     5 2006-07-03 00:04 X11 -> X11R6/
drwxr-xr-x   8 root root   192 2006-05-03 00:56 X11R6/
lrwxrwxrwx   1 root root     8 2006-07-03 00:04 adm -> /var/adm/
drwxr-xr-x   2 root bin  37672 2006-07-13 19:29 bin/
this is how my permissions for the /usr/bin dir look like, the bold ones. check if yours are different. All the files in the /usr/bin directory should have the same permissions as the directory has. So when you chmod the /usr/bin dir make sure you user 'chmod -R permissions dir'
 
Old 07-13-2006, 01:16 PM   #18
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
ok, mine looks like this:

Quote:
drw-r--r-- 2 root root 40960
so I should boot up with cd 1 again, follow the steps, and chgrp to bin, what would the numbers be to get the permissions to drwxr-xr-x?
 
Old 07-13-2006, 01:27 PM   #19
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
yup, boot up with CD 1, chgrp to bin and chmod -R 755
 
Old 07-13-2006, 01:50 PM   #20
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
well, changed permissions and everything, still having the same problem. Does Slackware have something like windoze system restore, by chance?
 
Old 07-13-2006, 01:59 PM   #21
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
Not one that I can recall. As I've told you, next step is to reinstall the system but without formatting any of your partitions, and try to choose at least the same packages as before, so you won't risk a seg faulted prog. remain on your system. If that won't do the trick, you have to reinstall it by formatting your partitions. If you have a separate partition for your /home then don't format it, just mount it without format, if you have only one partition for the whole / then try making a backup somewhere, somehow with your most sensible data which you won't wanna loose and get on with it. And from now on, remember, don't change permissions to system directories and document yourself well before issuing a command that may brake your system like this. Good look, and never give up. We learn from mistakes.
 
Old 07-13-2006, 02:03 PM   #22
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 928

Rep: Reputation: 96
No. But this is weird, you said you've tried 777, too. Why would one get segfault because of that? Segfault means some program causes error in the memory (pointer pointing wrong address etc). With insufficient permissions a process may fail to execute another one it uses and in turn that may cause a segfault; but with 777 permissions this cannot happen.

Was changing the permissions the only thing you did? Are you sure of that?
 
Old 07-13-2006, 02:05 PM   #23
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
yes, thats all I did. I was trying to compile a program that used m4, but it kept saying m4 failed, so I figured I'd see if it was a permission problem, and it all went downhill from there.
 
Old 07-13-2006, 02:33 PM   #24
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
ok, there is a new development. I switched to a different user, and bingo, I can use the commands that arent working under root. I guess that narrowsa the problem down some, but being able to use the other users is not going to help solve anything....
 
Old 07-13-2006, 02:37 PM   #25
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
What do you mean by you can run commands as other user ? You can run commands which only root can run as a normal user, or you can run system wide commands like for example: ls , ps and on root you got segmentation fault at these commands ?
 
Old 07-13-2006, 02:47 PM   #26
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
I can run ls, ps, and such as root, but I cant run chmod, chgrp, chown, make, and who know what else, those are the only ones I have tried, they say segmentation fault as soon as I try. I switched to another user, and those commands work, well, at least is gives me the options when I type the command instead of saying segmentation fault.
 
Old 07-13-2006, 02:54 PM   #27
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
Just a tought... login as root and first run: /usr/bin/chown , afterwards run: /bin/chown . Does both give you seg fault ? Do this as root, remember.
 
Old 07-13-2006, 02:58 PM   #28
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
yes, they both give a seg fault
 
Old 07-13-2006, 03:03 PM   #29
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
did you make any upgrade to your system ? or you have the stable 10.2 version ?
 
Old 07-13-2006, 03:13 PM   #30
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
I have 10.0, I have been running it for a couple years actually, I just usually used the gui to do everything. I havent done any kernel upgrades.
 
  


Reply

Tags
fault, programs, segmentation fault


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
segmentation faults crash88 Linux - Software 3 07-03-2006 10:22 PM
Segmentation faults winterhunter Linux - Software 5 10-14-2005 03:06 AM
Segmentation Faults. Terroth Linux - Hardware 1 06-19-2005 05:16 AM
Segmentation Faults ryankask Mandriva 2 06-13-2005 07:10 PM
Problems installing fastcgi on Fedora Core 3/Apache segmentation 11 faults bax Linux - Software 3 05-29-2005 10:38 PM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration