Click to See Complete Forum and Search --> : text editor prob


arioch
11-09-2002, 02:26 PM
I'm brand new at this so this is propably quite lame,please overbear! When i try to edit a file in kedit i get ' could not backup file' and 'could not write to file' how do i get around this? (and yes, i have tried as root):confused:

hlrguy
11-09-2002, 02:33 PM
Which file and in which directory were you working in. It sounds like you were trying to write to a directory that doesn't have write permission, even for root. If this is not the case, try gedit and see if the same problem occurs.

hlrguy

bwkaz
11-09-2002, 05:30 PM
Any user with UID of zero ignores all permission bits, regardless of what they are. So even if root has no access to a file (if, for example, it's owned by your normal user and set -rw-------), root can still access it.

The only time root can't change something is if you use ext2 or ext3 and have set filesystem attributes (append-only is a nice one for your logs, immutable is what I think the problem could be, but you'd have to set that manually, there are others). If running lsattr on the file displays only a bunch of dashes and the filename, then this isn't the problem either.

What did you do to "open kedit as root"?

hlrguy
11-09-2002, 09:37 PM
Originally posted by bwkaz
Any user with UID of zero ignores all permission bits, regardless of what they are. So even if root has no access to a file (if, for example, it's owned by your normal user and set -rw-------), root can still access it.

I know that is true with vi, I use the w! option, but with a gui editor such as kedit or gedit, how do you 'force' the write when you are root. If it exists, then that would help me to help others. When they have to open a file, I usually put a 100% step by step using vi.

hlrguy

bwkaz
11-10-2002, 12:44 PM
Heh. I have no idea. ;)

I just use gvim when I need a GUI editor, actually. :p So I'm not familiar with the way [gk]edit work. Perhaps there's documentation on the site kedit comes from (is that KDE)? I don't know.

arioch
11-10-2002, 06:00 PM
I,m basically trying to do this: http://home.nyc.rr.com/computertaijutsu/fluxbox.html to change a background in a windowstyle in fluxbox window manager (which is pretty damn cool by the way) the style i'm trying to edit is called cthulhain but i'm being shut out. suggestions? By the way i'm using libranet 2.0/debian and reiserFS

justfreemcco
11-10-2002, 06:04 PM
try midnight commander?