1 |
if you want to make it so that a user can not look at a directory such as |
2 |
/var you can use a command such as: |
3 |
chmod o-x /var |
4 |
|
5 |
basically that takes away execute privileges for other. Basically what |
6 |
happens when you run the ls command it executes the directory. You can do |
7 |
that for each directory that you do not want anyone but the owner or root to |
8 |
be able to look at. |
9 |
Read the man page of chmod for a better explanation. |
10 |
|
11 |
On Dec 11, 2007 8:27 PM, Grant <emailgrant@×××××.com> wrote: |
12 |
|
13 |
> I'd like to create a really restricted user on my laptop. I don't |
14 |
> want the user to be able to do much of anything but browse the web, |
15 |
> use skype, and maybe look at photos on a CD or something. I did this: |
16 |
> |
17 |
> useradd -m -G users,audio,cdrom -s /sbin/nologin newuser |
18 |
> |
19 |
> How does that look? I've noticed when adding this kind of a user in |
20 |
> the past they are able to look at files all around the system that I'd |
21 |
> prefer they can't. Is there a good method for restricting that? |
22 |
> Maybe remove the users group? Is a weak password OK with this setup |
23 |
> since there's no shell access? |
24 |
> |
25 |
> - Grant |
26 |
> -- |
27 |
> gentoo-user@g.o mailing list |
28 |
> |
29 |
> |