Making a file Read-only
I need to make a file read-only, so that this Windows program I'm using in WINE doesn't re-make the file that causes tself to crash.
I want to make the 0 byte, empty file without letting the WINE program over-write it with its version. Thanks. |
touch <filename> = creates file (will have 0 bytes as size)
chmod 444 <filename> = makes read only |
Thanks.
|
Oop... The Windows program (under WINE) somehow managed to write a few bytes to it! :-X
|
Really? When you type ls -la <file-name> what does it show for the permissions?
|
la <filename>
just shows me the filename again, with no additional information. -la is not found as a command |
ls -la <filename>
The above line is the command. |
(ACK! Sorry, didn't see the "ls" on your previous post, and I'm pretty Linux-newbie anyways! :) )
-r-------- 1 root root 0 Feb 7 21:07 custom.hpk I am logged in as "root". |
This is a good example of why not to run as root. ;)
Regards, nightwulf |
That was very helpful indeed. :p
|
All times are GMT -5. The time now is 05:58 AM. |