Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 6, 2011, 06:48 PM   #1
Kenrik
macrumors 6502
 
Join Date: Dec 2004
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)
Kenrik is offline   0 Reply With Quote
Old Apr 6, 2011, 06:51 PM   #2
Hawkeye411
macrumors 68000
 
Hawkeye411's Avatar
 
Join Date: Jun 2007
Location: Canada EH!!!
Hawkeye411 is offline   0 Reply With Quote
Old Apr 6, 2011, 10:58 PM   #3
Kenrik
Thread Starter
macrumors 6502
 
Join Date: Dec 2004
Quote:
Originally Posted by Hawkeye411 View Post
The web server in OSX Server runs under the user _www or WWW.. the folders are owned by the WWW user. I was asking how to reset the password for the WWW user as it's a special kind of user.
Kenrik is offline   0 Reply With Quote
Old Apr 7, 2011, 04:29 AM   #4
YanniDepp
macrumors 6502
 
Join Date: Dec 2008
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)
YanniDepp is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Boot straight to Standard account with Password Admin Account. Traverse OS X 11 May 12, 2014 06:37 PM
Do you have a password set for your user account? DramaLLama OS X 2 Sep 17, 2013 04:48 AM
LogMeIn, Prey Project.. Guest account access or leave no password on main account? DramaLLama Mac Basics and Help 1 Jul 31, 2013 01:47 PM
Lost password for account Macnewbies OS X 1 Mar 25, 2013 12:05 PM
Guest account asking for password JamesP. MacBook Pro 0 Jul 21, 2012 12:08 PM

Forum Jump

All times are GMT -5. The time now is 05:37 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC