- This topic has 4 replies, 3 voices, and was last updated Mar 8-6:22 am by andfree.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › New users › New Users and General Questions › (solved) User account without access to main user's home folder
Tagged: file protection, user accounts
Hi. I used the User Manager to create a new user’s account. But when I login to the new account, I can see the main user’s home folder with all its contents. No password is required to give this access. Is there any way to protect the main user’s home folder from the other users, with the use of my password? Thanks.
Chown user1:user1 /home/user1/ -r
Chmod 770 /home/user1/
Should do it I think.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
The first command doesn’t seem to be OK:
$ chown dragon:dragon /home/dragon/ -r
chown: invalid option -- 'r'
Try 'chown --help' for more information.
But the second command did the job:
chmod 770 /home/dragon/
And the new user can’t see the /home/dragon/ folder. Many thanks.
The first command doesn’t seem to be OK
^— but, to preclude unforeseen consequences, was probably necessary
chown -R . . .
OK, I ran it with “sudo”, because some changes were not permitted. So, the steps for user1 to make his home folder invisible to other users are:
$ sudo chown user1:user1 /home/user1/ -R
$ chmod 770 /home/user1/
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |