More than one machine with the same root account login, but I don't want to expose my folder to others, excuse me, can you give this folder encryption alone?
Or what other method can avoid people access my folder?
CodePudding user response:
By the way, is there a way to view some files which SSH address what time is copy?
CodePudding user response:
Multi-user operating system
CodePudding user response:
refer to the original poster JHGFKDJ response: more than one machine with the same root account login, but I don't want to expose my folder to someone else, excuse me, can you give this folder encryption alone? Or what other method can avoid people access my folder? Have a way to make the directory as a read-only state. CodePudding user response:
If you're using when people cannot use, then can use encryption disk way Initialization steps are as follows: Dd if=/dev/zero of=/root/cc. The img bs=1 m count=10000 Losetup/dev/loop0/root/cc img or losetup -f -- show/root/cc. Img The cryptsetup luksFormat/dev/loop0 this step you need to set up a password The cryptsetup luksOpen/dev/loop0 CCFS has just set up this step need to input password MKFS. Corruption - m0/dev/mapper/CCFS The mkdir/MNT/CCFS Mount/dev/mapper/CCFS/MNT/CCFS Start the command Losetup/dev/loop0/root/cc img The cryptsetup luksOpen/dev/loop0 CCFS Mount/dev/mapper/CCFS/MNT/CCFS The shutdown command Umount/MNT/CCFS The cryptsetup luksClose/dev/mapper/CCFS Losetup -d/dev/loop0 Use it every time you open the encrypted disk, finished close the encrypted disk People don't know your password will not be able to open your encrypted disk, even if he has a root password is no use But if you are using when he remote login, so he can still see your file CodePudding user response:
refer to the second floor emperor royal thunder response: multi-user operating system I also want to have this operation method, but always feel this way to let people feel a little less trust (manual laugh cry), if can all or still use the root account, but a certain folder set close to the root account to perform good, only I a person swimming has a password