LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2005, 08:25 PM   #1
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Rep: Reputation: 15
Chown command giving invalid user


Hi I am attempting to configure squirrelmail. I have followed these steps:

1) downloaded tar
2) extracted tar; cd to extracted tar's director; made attachments dir; and attempt to reassign ownership using chown.

Code:
tar xzvf squirrelmail-1.4.3.a.tar.gz
cd squirrelmail-14.3a
mkdir attachments
chown -R www-data data attachments

[I] Error is thrown: 

chown: 'www-data'  : invalid user
When I looked in chown --help this appears to be formated ok. One thing that I am not sure of is wether or not www-data has to be an existing linux user. If so I am not sure how to determine whether it is or is not?

I have performed many chown commands in the last day or so and all with success so I can't understand why this is failing?

Your help in determining why this might be failing is greatly appreciated.

Last edited by ServerStorm; 01-05-2005 at 08:28 PM.
 
Old 01-05-2005, 08:33 PM   #2
Psyddicus
Member
 
Registered: Apr 2004
Location: Minnesota
Distribution: debian testing
Posts: 41

Rep: Reputation: 15
I believe that your user 'www-data' doesn't yet exist if you're getting that error (a user has to exist to own something). I'm not familiar with the app you're setting up, but I suppose you could just create the user www-data on your own and then give him the folders in question.
 
Old 01-05-2005, 08:54 PM   #3
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks Psyddicus

This makes sense. In all other cases where I used Chown I needed to create the user first. In this instance I was copying code directly as a step by step and so I assumed that an earlier script in this step by step created the required users. Thinking about it I should have been able to come to this on my own, so thanks for asking a somewhat silly question!

Truly,
ServerStorm
 
Old 01-05-2005, 08:59 PM   #4
Psyddicus
Member
 
Registered: Apr 2004
Location: Minnesota
Distribution: debian testing
Posts: 41

Rep: Reputation: 15
More than glad to help, I've done similar stuff myself quite a few times in the past. Sometimes you get so caught up in what you're doing that you forget about the easier stuff.
 
Old 03-23-2010, 02:33 AM   #5
zeuss86
LQ Newbie
 
Registered: Mar 2010
Distribution: CentOS-5-i386
Posts: 3

Rep: Reputation: 0
Question chown - invalid user

here is the thing:
in my /etc/passwd file, I can see my user:

Code:
[root@hamed]# cat /etc/passwd
eyvazian:x:1011:1011:System User for eyvazian:/home/eyvazian/:/sbin/nologin
but when I run chown I get the following error:
Code:
[root@hamed]# chown /home/eyvazian/ eyvazian
chown: `./-24.php': invalid user
any suggestions ?
 
Old 03-23-2010, 02:37 AM   #6
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by zeuss86 View Post
here is the thing:
in my /etc/passwd file, I can see my user:

Code:
[root@hamed]# cat /etc/passwd
eyvazian:x:1011:1011:System User for eyvazian:/home/eyvazian/:/sbin/nologin
but when I run chown I get the following error:
Code:
[root@hamed]# chown /home/eyvazian/ eyvazian
chown: `./-24.php': invalid user
any suggestions ?
The command you are executing is wrong, try this:
Quote:
#chown eyvazian /home/eyvazian/
 
Old 03-23-2010, 02:42 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by zeuss86 View Post
any suggestions ?
Better you give chown the user before the file.
Code:
c@CW8:~$ chown --help
Usage: chown [OPTION]... [OWNER][:[GROUP]] FILE...
  or:  chown [OPTION]... --reference=RFILE FILE...
EDIT: sayan_acharjee got there first
 
  


Reply

Tags
chown


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
!!!! Urgent, using chown command ? AQG Linux - Security 8 08-12-2005 03:21 PM
squirremail ...it says invalid user or invalid password. rnj Fedora 9 10-25-2004 09:56 PM
I Have a problem with the CHOWN command AnnePeter Linux - Software 5 03-12-2004 07:37 AM
So... I used Chown command and screwed my pc... Nosram Linux - Newbie 3 01-20-2004 06:09 AM
chown command help ksgill Linux - Newbie 9 04-28-2003 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:28 AM.

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