Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-13-2006, 12:32 PM
|
#16
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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?
|
|
|
07-13-2006, 01:05 PM
|
#17
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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'
|
|
|
07-13-2006, 01:16 PM
|
#18
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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?
|
|
|
07-13-2006, 01:27 PM
|
#19
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
yup, boot up with CD 1, chgrp to bin and chmod -R 755
|
|
|
07-13-2006, 01:50 PM
|
#20
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
well, changed permissions and everything, still having the same problem. Does Slackware have something like windoze system restore, by chance?
|
|
|
07-13-2006, 01:59 PM
|
#21
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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.
|
|
|
07-13-2006, 02:03 PM
|
#22
|
Senior Member
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,158
|
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?
|
|
|
07-13-2006, 02:05 PM
|
#23
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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.
|
|
|
07-13-2006, 02:33 PM
|
#24
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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....
|
|
|
07-13-2006, 02:37 PM
|
#25
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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 ?
|
|
|
07-13-2006, 02:47 PM
|
#26
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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.
|
|
|
07-13-2006, 02:54 PM
|
#27
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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.
|
|
|
07-13-2006, 02:58 PM
|
#28
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
yes, they both give a seg fault
|
|
|
07-13-2006, 03:03 PM
|
#29
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
did you make any upgrade to your system ? or you have the stable 10.2 version ?
|
|
|
07-13-2006, 03:13 PM
|
#30
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|