messed up file permissions

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
sfh1975
Lance Naik
Posts: 22
Joined: Tue May 22, 2007 11:21 pm
Contact:

messed up file permissions

Post by sfh1975 »

dear friends,
can some guru tell me about default file ownership and permissions in ubuntu and/or debian? i know fixing each of them is not possible but i want to get as close as possible, after messing up permissions while trying to read/ write from one into another distro.
any help will be greatly appreciated.
thanks,
faisal
ps: i dont care about security but i cant run some applications, e.g. pppd for using VPTCL hangs up due to being run as non-root. Other issues exist too.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: messed up file permissions

Post by LinuxFreaK »

Dear sfh1975,
Salam,
sfh1975 wrote:can some guru tell me about default file ownership and permissions in ubuntu and/or debian? i know fixing each of them is not possible but i want to get as close as possible, after messing up permissions while trying to read/ write from one into another distro.
any help will be greatly appreciated.

ps: i dont care about security but i cant run some applications, e.g. pppd for using VPTCL hangs up due to being run as non-root. Other issues exist too.
I do not have debian system right now other wise tell you extact directory/files permissions.

1. All Directories at / have 755 permission.
2. Files under /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin must have permission 755

You can get info which directory is used for what purpose and set permission accordingly.

FYI, http://www.debian.org/doc/manuals/user/ch-files.html

Best Regards.
Farrukh Ahmed
sfh1975
Lance Naik
Posts: 22
Joined: Tue May 22, 2007 11:21 pm
Contact:

Re: messed up file permissions

Post by sfh1975 »

LinuxFreaK wrote:Dear sfh1975,
Salam,
sfh1975 wrote:can some guru tell me about default file ownership and permissions in ubuntu and/or debian? i know fixing each of them is not possible but i want to get as close as possible, after messing up permissions while trying to read/ write from one into another distro.
any help will be greatly appreciated.

ps: i dont care about security but i cant run some applications, e.g. pppd for using VPTCL hangs up due to being run as non-root. Other issues exist too.
I do not have debian system right now other wise tell you extact directory/files permissions.

1. All Directories at / have 755 permission.
2. Files under /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin must have permission 755

You can get info which directory is used for what purpose and set permission accordingly.

FYI, http://www.debian.org/doc/manuals/user/ch-files.html

Best Regards.
Thanks a lot Farrukh bhai,
I will try my luck at that. I guess setting permissions to / through -R wont be a good idea, as this very command played havoc. I will rather go for each directory individually as you mentioned.
I will post my results in due time,
wassalam,
sfh1975
Lance Naik
Posts: 22
Joined: Tue May 22, 2007 11:21 pm
Contact:

Post by sfh1975 »

nops it didn't work out.
i couldn't run many application while others kept crashing.
finally i did a clean install.
aptoncd helped me recover some installed applications so that i didn't have to download them all.
i had ubuntu desktop and alternate iso (read how i got these at www.shahfaisal.wordpress.com) but meanwhile shipit cds also arrived.
thanks anyway,
faisal
Post Reply