You are not logged in.

#1 2011-04-29 19:10:07

sudokill
Member
Registered: 2011-04-27
Posts: 54

[SOLVED] How to make file read only and stay?

I'm using gnome 3 and want to make the recently used.xbel file (in .local/share) read-only/locked. I've tried making it read only and it just reverts to normal when something tries to write to it. How do I do this?

Last edited by sudokill (2011-04-29 19:41:51)

Offline

#2 2011-04-29 19:15:35

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] How to make file read only and stay?

chattr +i filename

(you might have to be root and it might not work on all filesystems)

Offline

#3 2011-04-29 19:16:35

sudokill
Member
Registered: 2011-04-27
Posts: 54

Re: [SOLVED] How to make file read only and stay?

I read about that only working on ext2/3. Does it work with ext4? Any harm in trying it?

Offline

#4 2011-04-29 19:20:29

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] How to make file read only and stay?

It works on ext4, no harm in trying anyhow.

Last edited by lucke (2011-04-29 19:22:00)

Offline

#5 2011-04-29 19:30:27

sudokill
Member
Registered: 2011-04-27
Posts: 54

Re: [SOLVED] How to make file read only and stay?

Worked great, thanks. No more recent documents at all smile

Offline

Board footer

Powered by FluxBB