Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-05-2012, 02:39 PM   #1
Registered: Jul 2012
Posts: 37

Rep: Reputation: Disabled
what is the www-data account?


I am new to Linux, and I'm trying to learn it to administer our web server. There is an account on the server called "www-data".

Is this account created by some program?

Is it possible to find out what the password for it is?

Old 10-05-2012, 02:48 PM   #2
Registered: Jun 2012
Location: Missouri, USA
Posts: 222

Rep: Reputation: 62
'www-data' is the user under which your web server runs. 'www-data' user has no password set by default.
1 members found this post helpful.
Old 10-08-2012, 01:46 PM   #3
Registered: Jul 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Is www-data set up by Apache 2?

Is it possible to map a network drive in Windows to connect with the www-data account on Linux?

Old 10-08-2012, 06:42 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,357

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
The acct (as states above) belongs to the owner of apache and would have been created during the apache install.
If you check the entry in /etc/passwd, you'll likely find it has /sbin/nologin as the default shell; that's fine.

Mapping network drives can be done by NFS or Samba, depend on exactly what you need to do.
We need more information/details.
Old 10-09-2012, 06:42 AM   #5
Registered: Jul 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Our website has a page that lets users upload files. I found that I could set the permissions on the upload folder to 755 but I had to change the owner to www-data for it to work. I have the website folder set up as a mapped drive on the windows computer I use to work on the website. The only problem is that I now can't drag & drop the files from the mapped drive in Windows - it gives an error stating I have to be logged on as www-data to do anything with the files in the upload folder. But when I try to map a drive in windows using the www-data account, it keeps saying the password is incorrect. I also tried mapping a drive using the root account, but it gives the same error even though I know I'm putting in the right password.

I can log on the Linux server fine with the root account using putty.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] www-data account hijacked Nickalf Linux - Security 15 02-07-2012 06:05 AM
www-data account hijacked Nickalf Linux - Server 1 02-02-2012 01:35 AM
www mail account manager sloniupl Linux - Newbie 2 03-07-2011 03:39 AM

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration