1
vote
1answer
115 views

How to disable local file writes?

I maintain a shared public computer. Every user has their own directory in /home. We don't like to make /home a network mount because it takes a long time for new users to login, but we would like to ...
2
votes
1answer
60 views

Changing file permissions on an HFS+ filesystem

I ran the command fdisk -l to find out what my external drive is formatted to, I found out it's uses GPT partitions and the filesystem is HFS+. When I try and create a new folder on the external ...
1
vote
1answer
176 views

Give read-only access to specific folders?

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users ...
1
vote
1answer
91 views

temporarily disabling one's own filesystem write permission

I can't believe there is no simple solution to this (because it seems potentially a very useful feature to me), but so far I couldn't find any. I'd like to be able to (temporarily) turn off my own ...
2
votes
1answer
131 views

How can I get write access to my usb drives?

I have trouble writing to external drives. They are monuted automatically in Nautilus, but I can not copy anything there ('Paste' and 'create Folder' are just greyed out). Does Anyone have ideas what ...
1
vote
1answer
1k views

Filesystem suddenly read-only?

I've been storing some files on a MicroSD formatted to ext4 that I connect via USB. I tried to move a directory in it to an external hard drive, and I got mv: error reading ...
1
vote
1answer
154 views

Changed file access to read only but I can still write to the file. Why?

I am running a small embedded system built using buildroot. I have come across this strange behaviour when trying to set up my file permissions on the target device. To illustrate what confuses me I ...
19
votes
2answers
1k views

How do I make a file NOT modifiable?

While logged in, I can do the following: mkdir foo touch foo/bar chmod 400 foo/bar chmod 500 foo Then I can open vim (not as root), edit bar, force a write with w!, and the file is modified! How ...
31
votes
2answers
13k views

Why can rm remove read-only files?

If I create a file and then change its permissions to 444 (read-only), how come rm can remove it? If I do this: echo test > test.txt chmod 444 test.txt rm test.txt ...rm will ask if I want to ...
3
votes
2answers
2k views

Tar overwrites read only files

I created directory test, created file 1.txt in test, wrote 'Before' in this file. Then I went cd .. and used the command: tar -cvzf ./test.tgz ./test Then I entered the test dir again. Opened ...
5
votes
2answers
3k views

ISO file readonly?

I have an ISO file and I mount it under /mnt/isofile. Then I copied this file to another folder. But the contents are read-only and belonged to root. I tried to use chmod and chown. But it prompts ...