Re: Freebsd based server lacking chown command, where to get it.

2008-02-12 Thread Jerry McAllister
On Tue, Feb 12, 2008 at 08:49:22AM -0800, deepcore wrote:

> 
> > 
> > 
> 
> ok. I get that, and i found it
> I can, however not execute it.
> whenever i go to the usr/sbin and type "chown" i get
> chown: Command not found.

That is most likely because it is not in your path.
It you had typed  '/usr/sbin/chown ...'   then it would probably work.
The better thing is to put /usr/sbin in your standard path.
You can to that in .login.

The handbook and man pages cover modifying your path.

jerry


> 
> i find this pretty strange as ls -l shows:
> -r-xr-xr-x 1 root wheel 6688 Jan 12 2007 chown
> 
> shouldn't this mean that the file is excecutable by all?
> even tried to switch to root first (just executing su)
> 
> ...
> What i am more specifically trying to do is change the ownership of all the
> directories and files on a specific disk, mounted as /mnt/moviedisk, to the
> user that is supposed to own them.
> 
> Any surgestions? What am i doing wrong as i cannot execute the chown
> command?
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Freebsd-based-server-lacking-chown-command%2C-where-to-get-it.-tp15427115p15435319.html
> Sent from the freebsd-questions mailing list archive at Nabble.com.
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd based server lacking chown command, where to get it.

2008-02-12 Thread Hugo Silva

deepcore wrote:



  






ok. I get that, and i found it
I can, however not execute it.
whenever i go to the usr/sbin and type "chown" i get
chown: Command not found.

i find this pretty strange as ls -l shows:
-r-xr-xr-x 1 root wheel 6688 Jan 12 2007 chown

shouldn't this mean that the file is excecutable by all?
even tried to switch to root first (just executing su)

...
What i am more specifically trying to do is change the ownership of all the
directories and files on a specific disk, mounted as /mnt/moviedisk, to the
user that is supposed to own them.

Any surgestions? What am i doing wrong as i cannot execute the chown
command?


  


/usr/sbin/chown
cd /usr/sbin; ./chown

Hugo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd based server lacking chown command, where to get it.

2008-02-12 Thread Derek Ragona

At 10:49 AM 2/12/2008, deepcore wrote:





> 
>

ok. I get that, and i found it
I can, however not execute it.
whenever i go to the usr/sbin and type "chown" i get
chown: Command not found.

i find this pretty strange as ls -l shows:
-r-xr-xr-x 1 root wheel 6688 Jan 12 2007 chown

shouldn't this mean that the file is excecutable by all?
even tried to switch to root first (just executing su)

...
What i am more specifically trying to do is change the ownership of all the
directories and files on a specific disk, mounted as /mnt/moviedisk, to the
user that is supposed to own them.

Any surgestions? What am i doing wrong as i cannot execute the chown
command?


Sounds like your path doesn't include /usr/sbin, or /usr/sbin or /usr is 
mounted without exec.


Have you tried executing with the complete path:
/usr/sbin/chown

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd based server lacking chown command, where to get it.

2008-02-12 Thread deepcore




> 
> 

ok. I get that, and i found it
I can, however not execute it.
whenever i go to the usr/sbin and type "chown" i get
chown: Command not found.

i find this pretty strange as ls -l shows:
-r-xr-xr-x 1 root wheel 6688 Jan 12 2007 chown

shouldn't this mean that the file is excecutable by all?
even tried to switch to root first (just executing su)

...
What i am more specifically trying to do is change the ownership of all the
directories and files on a specific disk, mounted as /mnt/moviedisk, to the
user that is supposed to own them.

Any surgestions? What am i doing wrong as i cannot execute the chown
command?


-- 
View this message in context: 
http://www.nabble.com/Freebsd-based-server-lacking-chown-command%2C-where-to-get-it.-tp15427115p15435319.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd based server lacking chown command, where to get it.

2008-02-12 Thread Wojciech Puchar

The distibution has been made with the chmod, but without the chown command
in its /bin directory.

chown is in /usr/sbin/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"