1 |
Caleb Cushing wrote: |
2 |
> here is mys script. |
3 |
> |
4 |
> chown -R bgkiosk:users /home/bgkiosk/ |
5 |
> chown -R bgkiosk:users /home/bgkiosk/.* |
6 |
|
7 |
'chown -R bgkiosk:users /home/bgkiosk' can replace those 2 lines |
8 |
|
9 |
> echo "root:*" | chpasswd |
10 |
|
11 |
This is setting the root password to "*", which is probably not what you |
12 |
intended to do. Also, you'll want to use single quotes in the echo when passing |
13 |
stuff to chpasswd to avoid the shell interpolating stuff in the string. In the |
14 |
above command, the root password is probably actually being set to a list of all |
15 |
the files in whatever directory you're in :P Use the -e option to chpasswd to |
16 |
have it put the password into /etc/shadow as-is. You could also use 'passwd -l |
17 |
root' to lock the account. |
18 |
|
19 |
-- |
20 |
Andrew Gaffney http://dev.gentoo.org/~agaffney/ |
21 |
Gentoo Linux Developer Installer Project |
22 |
|
23 |
-- |
24 |
gentoo-catalyst@g.o mailing list |