LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2004, 10:23 PM   #1
speed_viper
LQ Newbie
 
Registered: Sep 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 21

Rep: Reputation: 15
Question write protection


I have a huge problem, some how my /usr/bin directory is write protected. It never used to be, but im not sure when it got write protected. I need to upgrade SpamAssassin, but it can't write to /usr/bin and it has to in order to install. Any suggestions on how to fix this?

Thanks
Speed Viper
 
Old 09-30-2004, 10:29 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
You will need to be root in order to write to /usr/bin.

The permissions for /usr/bin should be something like
Code:
drwxr-xr-x   2 root     root        36864 Sep 20 09:39 /usr/bin/
I hope this helps
--Ian
 
Old 09-30-2004, 10:33 PM   #3
speed_viper
LQ Newbie
 
Registered: Sep 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 21

Original Poster
Rep: Reputation: 15
Sorry i forgot to say it before but i am loggin in as root. And it doesn't make any differece.

Thanks
Speed Viper
 
Old 10-01-2004, 12:20 AM   #4
dustu76
Member
 
Registered: Sep 2004
Distribution: OpenSuSe
Posts: 153

Rep: Reputation: 30
Well try chaging the permissions by logging as root:

chmod 755 /usr/bin

Further, check how the /usr partition (in case its is separate partition) is being mounted in /etc/fstab.

HTH
 
Old 10-01-2004, 06:11 PM   #5
speed_viper
LQ Newbie
 
Registered: Sep 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 21

Original Poster
Rep: Reputation: 15
When i run the command "chmod 755 /usr/bin" as root, i get this error message "chmod: changing permissions of `/usr/bin': Operation not permitted".

This is what my /etc/fstab file looks like
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/hdb1 /ftp ext3 defaults 1 1
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0


Thanks
Josh
 
Old 10-02-2004, 12:10 AM   #6
speed_viper
LQ Newbie
 
Registered: Sep 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 21

Original Poster
Rep: Reputation: 15
Exclamation Its fixed

I got it fixed. I had to issue the command "lsattr -d /usr/bin" and the attributes s i a where set. So in order to fix it, i had to issue the command fsck and when that check ok i had to issue the command "chattr -RV -sia /usr/bin" to remove the attributes.

Thanks for the help.
Speed Viper
 
  


Reply



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
Samba Write Protection amajos Linux - Networking 1 08-11-2005 07:58 PM
Detecting write-protection on DVD-RAM media SMes Linux - Software 0 11-24-2004 06:43 AM
Write-protection in scripts Louis_Carole Linux From Scratch 1 09-02-2004 11:22 PM
Write protection question... floridagators1 Mandriva 5 05-22-2004 09:29 AM
Write Protection mfo6463 Linux - Newbie 5 03-31-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration