课程: Linux: Storage Systems

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Using SUID, attributes, and read-only

Using SUID, attributes, and read-only - Linux教程

课程: Linux: Storage Systems

Using SUID, attributes, and read-only

- [Instructor] Let's look a little bit more at extended attributes and mount options. So extended attributes are special features that you need to be root to do, but you can say, set a file to be immutable. That means you can't change it, can't delete it, can't even delete the directory it's in because that would delete it. Or append only, append only, you can't overwrite the file. You can only add stuff to the end of it. That might be handy. There's a bunch of attributes and they vary in which file systems implement 'em, but immutable and append only are kind of cool and I use those sometimes. We know when we mount, there's lots of options we can use. One that might protect you is read only. It'll make your system root file system read only and then you have everything right into some other partition, then you don't have to worry about your root file system, getting corrupted, for example. That could be handy on embedded devices. If you use the option nosuid, then the SUID…

内容