[K12OSN] chown script help needed (word of caution)
John Baillie
jbaillie at stmarys-school.org
Sun Sep 4 19:25:00 UTC 2005
Les Mikesell wrote:
>I don't think you can physically embed a / in a file or directory
>name.
>
I was shocked! but alas it's true.
Put the following in a text file and create this user using the bulk add
in webmin
create:baduser:123:uid:gid:Bad User:/home/baduser /:/bin/bash:::::
do an ls on /home
and all looks well
browse /home with a gui file browser and all looks well
do an ls -ld baduser
on /home
no such file or directory exists
open webmin and pull up the info on bad user you will see the their home
dir is " /home/baduser / "
if you then run the reset-all-desktop script it will run fine up until
baduser after which it will
chown -R / baduser:baduser
John
More information about the K12OSN
mailing list