Web Hosting Talk







View Full Version : change linux root password


kanis
11-22-2002, 10:21 AM
Hi

Question 1 .

How can i change linux root password, can i do this from webmin. please let me know.


Question 2.
How do i setup a domain on linux apachi

oc3
11-22-2002, 11:45 AM
#"passwd" on the linux prompt will help u change the pasword

not sure where in webmin do u do that ..


cheers :)

prime
11-22-2002, 11:58 AM
I think a SSH window can be opened from Webmin.

You'd be able to log in then, probably under a different name than root, then use the SU command to become root, and then the passwd command as told higher.

a:\
11-22-2002, 04:35 PM
Webmin > System > Users and Groups > root > password

wmac
11-23-2002, 03:01 AM
Just a warning:

Once I changed root password from prompt but later saw that webmin's root password was not synchronized with linux. (webmin .97 I think).

Mac

achost_ca
11-23-2002, 05:36 AM
yeah, webmin doesn't resync its password if it was changed via terminal, nor does it when you use the webmin interface. You have to manually resync them.

wmac
11-23-2002, 06:48 AM
Your second question:

After setting up DNS and web root directory you should have something like these on your /etc/httpd/conf/httpd.conf



1 | ServerName servername.domain.com
2 | NameVirtualHost 10.10.6.1
3 |
4 | <VirtualHost 10.10.6.1>
5 | DocumentRoot /var/www/html
6 | ServerName servername.domain.com
7 | </VirtualHost>
8 |
9 | <VirtualHost 10.10.6.1>
10| DocumentRoot /home/mysite/www/
11|ServerName mysite.com
12| ServerAlias www.mysite.com
13| </VirtualHost>



1-7: Default Website and Server configurations

9-13: Other sites (Name based sites, using shared IP address)

Mac

prime
11-23-2002, 05:27 PM
Originally posted by achost_ca
yeah, webmin doesn't resync its password if it was changed via terminal, nor does it when you use the webmin interface. You have to manually resync them.

It's an option you can set in the webmin users page. By default, it keeps its own list of name and passwords, but you can set it to use the system passwords.