Fórum Ubuntu CZ/SK
Ostatní => Ubuntu Server => Téma založeno: symmetry 29 Května 2011, 13:36:16
-
Napadlo mne, ze take ze by se nekdo mohl prihlasovat pod uzivatelem s nazvem www-data, jelikoz ten smeruje primo do adresare /var/www.
Takze jsem ho smazal ale to jsem si neuvedomil, ze ho Apache pouziva pri startu.
Zkusil jsem tedy:
groupadd -g 33 www-data
useradd -g www-data -c "www-data" -h /var/www -u 33 -s /bin/sh www-data
Ale v useradd mam asi chybu, mophl by mi prosim nekdo poradit, jak uzivatele www-data pridat znovu, tak aby Apache byl spokojen?
Diky za kazdou radu.
-
Přidejte ho jako systémový účet,
-r, --system
Create a system account.
System users will be created with no aging information in
/etc/shadow, and their numeric identifiers are choosen in the
SYS_UID_MIN-SYS_UID_MAX range, defined in /etc/login.defs, instead
of UID_MIN-UID_MAX (and their GID counterparts for the creation of
groups).
Note that useradd will not create a home directory for such an
user, regardless of the default setting in /etc/login.defs
(CREATE_HOME). You have to specify the -m options if you want a
home directory for a system account to be created.
useradd -r www-data