messed up file permissions

Discussion regarding the installation and configuration of Linux distributions.

messed up file permissions

Postby sfh1975 » Wed Nov 14, 2007 12:55 am

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.
sfh1975
Lance Naik
 
Posts: 22
Joined: Tue May 22, 2007 11:21 pm
Website: http://www.shahfaisal.wordpress.com

Re: messed up file permissions

Postby LinuxFreaK » Wed Nov 14, 2007 12:50 pm

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re: messed up file permissions

Postby sfh1975 » Wed Nov 14, 2007 1:36 pm

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
Website: http://www.shahfaisal.wordpress.com

Postby sfh1975 » Sat Nov 17, 2007 11:53 pm

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
sfh1975
Lance Naik
 
Posts: 22
Joined: Tue May 22, 2007 11:21 pm
Website: http://www.shahfaisal.wordpress.com


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 2 guests