LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2007, 07:17 PM   #1
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Rep: Reputation: 0
i have a problem


hello i`m using centos and i have a problem

when i try to do anything to /usr/sbin/sshd

chmod: changing permissions of `/usr/sbin/sshd': Operation not permitted


i can`t do nothing ..
i thought it was something with the chattr
but is not from chattr
can someone help me please
 
Old 06-13-2007, 07:55 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
What user are you running chmod as? You need to be logged in as root (or use su or sudo) to be able to change the permissions of sshd.

EDIT: I haven't had a chance to check whether you get the same error on read-only file-systems, but have you checked the partition is mounted read/write?

Also, this isn't the correct forum for this topic. You should probably ask a moderator to have it moved...

Last edited by gilead; 06-13-2007 at 07:59 PM.
 
Old 06-13-2007, 08:06 PM   #3
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Original Poster
Rep: Reputation: 0
yes i`m logged in root@
why won`t allowed me to modify it?
uh sorry about the wrong section

Last edited by ripper; 06-13-2007 at 08:08 PM.
 
Old 06-13-2007, 08:12 PM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Please post the exact command you are trying to perform.
 
Old 06-13-2007, 08:35 PM   #5
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Original Poster
Rep: Reputation: 0
i can`t do nothing

not chmod
not rm
not mv
not cp


nothing doesn`t work
 
Old 06-13-2007, 10:02 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Did you check whether the partition is mounted read only? Can you post the output of the mount command?
 
Old 06-14-2007, 02:19 AM   #7
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
Anyone can use the report button! I've reported it to be moved.


TG
 
Old 06-14-2007, 03:58 AM   #8
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Original Poster
Rep: Reputation: 0
yes is mounted correctly ... it just like it was before.. but then i had no problems with it

is there a command that cannot allow for a file to modified except chattr?
/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdb1 on /backup type ext3 (rw)

Last edited by ripper; 06-14-2007 at 04:02 AM.
 
Old 06-14-2007, 12:48 PM   #9
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 11,957

Rep: Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108
// moved.

--jeremy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM


All times are GMT -5. The time now is 07:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration