|Apr 6, 2011, 07:48 PM||#1|
WWW account password.
For some reason my WWW account will not let me login with my root password. Is there a way to set/reset the password for the WWW user so that I can modify files on my server from a remote computer (logged in as WWW)
|Apr 7, 2011, 05:29 AM||#4|
By default it won't have a password.
On Mac OS X server (and a lot of linux systems) the web server is set up to run as a special user called www. This protects your server, since (as you've figured out) www is a special user without a password and with no permission to log on to the machine (graphically or via ssh). This means that if your web server is ever compromised, any attacker will have very limited ability to damage the server. I heavily recommend that you leave it this way, especially if you're running live sites on your server. Of course, if it's just your own personal server with nothing important (i.e. clients sites) on it, it's not so important.
If you want to FTP files, your best bet is to:
- Create a user group called 'www' if one doesn't already exist
- Create a normal user that you'll use to FTP, and add it to the 'www' group
- Set your webroot (and all files in it) to be owned by the www group with write privileges.
This doesn't help you if you have no physical access to the machine. If this is the case, you can always ssh into the server as an administrator, type sudo -s to get a root terminal, then change the files as you see fit. Just make sure the permissions are set correctly for any files or folders you create, or www won't be able to modify them (important for things like WordPress's upload folder).
chown -R www /path/to/web/folder
MacBook Pro (2012), 2.5 GHz Core i5, 16GB RAM
Mac Mini (2009), 2.0 GHz Core2Duo, 8GB RAM
iMac (2006), 2.0GHz Core Duo, 2GB RAM
iPhone 5 (16GB), iPod touch 5 (64GB), iPad 3 (16GB), iPod mini (16GB)
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Keychain Password not the same as my Account password? HELP!||kercolan||MacBook||4||Apr 26, 2011 09:15 AM|
|Cydia's Manage Account Feature: How to change email address?||johnnyxhuynh||Jailbreaks and iOS Hacks||1||Mar 24, 2011 05:51 AM|
|account password||jasylonian||OS X||1||May 3, 2005 06:59 PM|
|Secure Your Password, Stronger Account Passwords in Panther||MacBytes||MacBytes.com News Discussion||0||Nov 11, 2003 04:21 PM|
All times are GMT -5. The time now is 04:43 AM.