how to change the owner of a file (chmod doesn't work)

how to change the owner of a file (chmod doesn't work)

Post by Massimiliano Panich » Tue, 04 Feb 1997 04:00:00



I have a problem with file permission/user/group set.
I can't set the "nobody" user for some files.
It is useful for me in order to change this file
from a www-cgi application written in Perl.
The chown command works without errors but it doesn't
really work. The files are still owned by the root
user.

Is there anybody who can help me?

Thanks in advance

Massimiliano Panichi


 
 
 

how to change the owner of a file (chmod doesn't work)

Post by Cliff Pra » Wed, 05 Feb 1997 04:00:00




Quote:

>The chown command works without errors but it doesn't
>really work. The files are still owned by the root
>user.

Are you sure you are using the correct format?

chown user:group filename???

If I do it, it works, provided the user and group exist.

Can you post a ls -al of the file before and after the command?

Cliff

 
 
 

how to change the owner of a file (chmod doesn't work)

Post by Linas Vepsta » Wed, 05 Feb 1997 04:00:00



> I have a problem with file permission/user/group set.
> I can't set the "nobody" user for some files.
> It is useful for me in order to change this file
> from a www-cgi application written in Perl.
> The chown command works without errors but it doesn't
> really work. The files are still owned by the root
> user.

This was a bug in linux kernel 1.2 that was fixed in
the kernel 2.0.  Which are you using?

--linas

 
 
 

how to change the owner of a file (chmod doesn't work)

Post by Pat Traino » Mon, 17 Feb 1997 04:00:00





> >The chown command works without errors but it doesn't
> >really work. The files are still owned by the root
> >user.

> Are you sure you are using the correct format?

> chown user:group filename???

> If I do it, it works, provided the user and group exist.

> Can you post a ls -al of the file before and after the command?

        This article caught my eye as I am attempting to solve a few
security concerns on my end. I, too, can't see the error, but I have
stumbled on a few interesting facts:

1. chown will negate the use of sticky and suid/sgid on a file/dir.
2. specifying a . as in: "chown root. filename" will change the group to
the login group, but: "chown root filename" won't.

        These are just things about chown I hadn't known before. Hope you
find your problem!

pat    
:)      


        * WARNING: THE OPINIONS I EXPRESS MAY NOT BE MY OWN *
    "So other than that, Mrs. Lincoln, how did you enjoy the play?"
      www.ntsa.org -+- National Tuberous Sclerosis Association

 
 
 

1. how to change the owner of a file (chmod doesn't work)

I have a problem with file permission/user/group set.
I can't set the "nobody" user for some files.
It is useful for me in order to change this file
from a www-cgi application written in Perl.
The chown command works without errors but it doesn't
really work. The files are still owned by the root
user.

Is there anybody who can help me?

Thanks in advance

Massimiliano Panichi


2. Q : How to interpret system monitor output values

3. chmod won't work unless I'm the owner, or root

4. Network configuration on a Sunblade 100 ( Solaris 8 10/00 )

5. chmod doesn't change permissions..

6. hardware detection

7. CHMOD 4755 doesn't work

8. Mouse emulators

9. chmod in script doesn't work?

10. Solaris 2.4 chmod on /home directory doesn't work

11. GNU fileutils: chmod +x doesn't work

12. Why doesn't chmod 511 work?

13. Bug in fileutils-3.5, chmod +x doesn't work?