LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-13-2006, 11:56 PM   #1
nkoplm
Member
 
Registered: May 2005
Distribution: Fedora
Posts: 92

Rep: Reputation: 15
i am writing to a chmod(444) file. am i missing something?


What am i missing here?

all this is being done over sftp except where it says its ssh.

- i chmodded a file to read only for everone (444) in nautilus via the file properties dialog.
- i opened it in gedit.
- i noticed it didnt give me a read only message, so i tried to save it.
- the save worked! ... i was suprized, so
- i logged on to the server using ssh.
- looked at the file permissions ( ls -l )
- it showed r-- r-- r--
- chmodded the file to 555 then back to 444 to re-set the atributes
- still the file shows r-- r-- r--
- i can still save.

what am i missing? how can i be saving to this file?

screenshot below.

http://img171.imageshack.us/my.php?i...enshot2gu0.png
 
Old 11-14-2006, 12:10 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
It's not happening here, running FC6. Time for a chkrootkit?
 
Old 11-14-2006, 08:06 PM   #3
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Quote:
what am i missing? how can i be saving to this file?
If you are root that's normal, if you're not ...
 
  


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
chmod won't change the file permissions midtown266 Linux - Newbie 12 11-28-2004 07:46 PM
using chmod to change file permission kiwidoc Linux - Newbie 3 07-25-2004 06:39 AM
How do you chmod a file that is -r--------? hopbalt Linux - Newbie 6 08-05-2003 05:48 PM
chmod and file permissions help qages Linux - General 5 01-27-2003 06:08 AM
file perm, chgrp, chmod, and umask Martini Linux - Newbie 2 08-06-2002 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:09 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
Open Source Consulting | Domain Registration