I need default rwx values for /var /usr =/
hey got a problem i backuped up /usr /var with just cp -R then recreated the parition then moved back all the files, but i guess when i backuped it up it didnt preserve the originial rwx/ownership modes so now the rwxrwxrwx modes are all messed up, and i cant run certain programs, only root can and ive been using chmod u+s program without really knowing what setuid does till i just saw that it changes the process id as root so thats not good =/ so yeah i need to restore the orginail default values for /usr /var and all the subdirectories, does anyone know where i can that info from or possibly could someone post here a ls -al /usr and /var or any other ideas? thanks
|
Maybe I shouldn't do this due to security, but what the hell. It'll be hard for you to match all the perms, but here you go http://magi.tldp.ca/files/var.tar.bz2 http://magi.tldp.ca/files/usr.tar.bz2
|
Re: I need default rwx values for /var /usr =/
Quote:
on a file-system in Slack from the MANIFEST.gz file of your installation CD ;) Code:
#!/bin/sh subdirectory... Cheers, Tink |
hmm this is not good after running that script i now get permission denied for anyone other then root while trying to access basic programs like ls or touch but looking at the permissions of /bin and /bin/ls for example seem correct i have r and x permission for all users
damn this sucks i think i might actually wipe everything and reinstall slack, i was thinking of doing that before to install current instead of 9.1 so this might actually just push me to do that =/ i also wanted to try LFS first but looks like ill just reinstall slack probably oh wait rather it was i couldnt ls or touch in the directories i was in, which i should be able to |
If the permissions on the executables are OK
check the permissions on the libraries they require ... E.g. if bash gives you permission denied, check ldd /bin/bash | cut -d" " -f 3 | xargs ls -l Remember, this is linux, as long as it is reachable, it can be fixed ;) Cheers, Tink |
true yeah i know its not like linux to just reinstall but this is a ugly problem cause all of /usr and /var permissions are messed up and i cant really track every file/dir one by one or something, not too sure what else to do
|
The alternative is not to re-install Slack but just reinstall all
packages. That will preserve all your settings, "new" versions of config-files would be called xxx.new mount slack-cdrom upgradelpkg --reinstall /<cdrom>/slackware/*/*.tgz Cheers, TInk |
All times are GMT -5. The time now is 02:32 AM. |