chown problems

2003-09-18 Thread Little, Chris
I'm trying to change the ownership of a file that I as user oracle own to user u55646 the following occurs -rw-r--r--1 u55646 dba 583 2003-09-18 13:01 rfc1953.log -rw-rw-rw-1 oracle oinstall 418 2003-09-18 12:55 rfc1953.sql -rw-r--r--1 oracle oinstall 583

Re: chown problems

2003-09-18 Thread Post, Mark K
You need to be root to do that. One user cannot change file ownerships to another user. Mark Post -Original Message- From: Little, Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM To: [EMAIL PROTECTED] Subject: chown problems I'm trying to change

Re: chown problems

2003-09-18 Thread Rich Smrcina
The man page on RHL 9.0 shows the format as: chown u55646:dba rfc1953.sql On Thu, 2003-09-18 at 14:47, Little, Chris wrote: I'm trying to change the ownership of a file that I as user oracle own to user u55646 the following occurs -rw-r--r--1 u55646 dba 583 2003-09-18 13:01

Re: chown problems

2003-09-18 Thread Michael MacIsaac
Operation not permitted Only root can chown. -Mike MacIsaac, IBM mikemac at us.ibm.com (845) 433-7061

Re: chown problems

2003-09-18 Thread Guillaume Morin
I'm trying to change the ownership of a file that I as user oracle own to user u55646 the following occurs Short version: Linux does not allow non-privileged use of chown. You have to be root to do it. Longer version: Actually Linux supports capabilities. You can give the capability to use

Re: chown problems

2003-09-18 Thread Rich Smrcina
OK, scratch that... I tried it your way and the period is accepted. On Thu, 2003-09-18 at 14:47, Little, Chris wrote: I'm trying to change the ownership of a file that I as user oracle own to user u55646 the following occurs -rw-r--r--1 u55646 dba 583 2003-09-18 13:01

Re: chown problems

2003-09-18 Thread Ryan Ware
Everybody wang chown tonight ;) -Original Message- From: Michael MacIsaac [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:56 PM To: [EMAIL PROTECTED] Subject: Re: chown problems Operation not permitted Only root can chown. -Mike MacIsaac, IBM mikemac

Re: chown problems

2003-09-18 Thread Post, Mark K
A period works just as well (I use it all the time out of habit). He's not getting a syntax error, it's permissions related. Mark Post -Original Message- From: Rich Smrcina [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:55 PM To: [EMAIL PROTECTED] Subject: Re: chown

Re: chown problems

2003-09-18 Thread Little, Chris
yuck. coming from HP-UX, it allows you to give a file to another owner. -Original Message- From: Post, Mark K [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:51 PM To: [EMAIL PROTECTED] Subject: Re: chown problems You need to be root to do that. One user cannot

Re: chown problems

2003-09-18 Thread Adam Thornton
On Thu, 2003-09-18 at 15:00, Little, Chris wrote: yuck. coming from HP-UX, it allows you to give a file to another owner. Huge security hole. Adam

Re: chown problems

2003-09-18 Thread Little, Chris
yeah. but it is convenient for my HP-UX users and they are now peeved. Another thing to listen to them complain about. -Original Message- From: Adam Thornton [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: Re: chown problems

Re: chown problems

2003-09-18 Thread Daniel Martin
, September 18, 2003 2:51 PM To: [EMAIL PROTECTED] Subject: Re: chown problems You need to be root to do that. One user cannot change file ownerships to another user. Mark Post -Original Message- From: Little, Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM To: [EMAIL

Re: chown problems

2003-09-18 Thread Guillaume Morin
Huge security hole Why ? The systems which allow the non-privileged use of chown drops the setgid and setuid bits when changing the owner. -- Guillaume Morin [EMAIL PROTECTED] IBM Poughkeepsie SAK Kernel Development On Thu, 2003-09-18 at 15:00, Little, Chris wrote: yuck. coming from HP-UX,

Re: chown problems

2003-09-18 Thread Rich Smrcina
Message- From: Rich Smrcina [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:55 PM To: [EMAIL PROTECTED] Subject: Re: chown problems The man page on RHL 9.0 shows the format as: chown u55646:dba rfc1953.sql On Thu, 2003-09-18 at 14:47, Little, Chris wrote: I'm trying

Re: chown problems

2003-09-18 Thread Adam Thornton
On Thu, 2003-09-18 at 15:10, Guillaume Morin wrote: Huge security hole Why ? The systems which allow the non-privileged use of chown drops the setgid and setuid bits when changing the owner. Do all of them? Because, yes, that's the hole I was thinking of. Adam

Re: chown problems

2003-09-18 Thread Guillaume Morin
yuck. coming from HP-UX, it allows you to give a file to another owner. So install sudo and give those users the right to use chown without any password. Adding something like alias chown='sudo chown'. Linux drops the setuid and setgid bits when changing ownership. Guillaume. -- Guillaume

Re: chown problems

2003-09-18 Thread Guillaume Morin
Do all of them? Because, yes, that's the hole I was thinking of. I would not bet on the all. It is too easy to get bitten by that one :) But iirc POSIX requires that for unprivileged use. (there is no standard for privileged use). Guillaume. -- Guillaume Morin [EMAIL PROTECTED] IBM

Re: chown problems

2003-09-18 Thread Little, Chris
i just talked to them and introduced the wonderful world of groups and chgrp. that might be better and more organized. -Original Message- From: Guillaume Morin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:17 PM To: [EMAIL PROTECTED] Subject: Re: chown problems

Re: chown problems

2003-09-18 Thread Alex deVries
[mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: Re: chown problems On Thu, 2003-09-18 at 15:00, Little, Chris wrote: yuck. coming from HP-UX, it allows you to give a file to another owner. Huge security hole. Adam

Re: chown problems

2003-09-18 Thread Guillaume Morin
Dans un message du 18 sep ` 16:24, Alex deVries icrivait : I suppose if you really didn't like this behaviour, you could write your own setuid version of chown. It is best way to open an huge security hole. It is better to use sudo. -- Guillaume Morin [EMAIL PROTECTED] Debian - What

Re: chown problems

2003-09-18 Thread Alan Cox
On Iau, 2003-09-18 at 21:06, Daniel Martin wrote: I believe the ability to give away a file that you intially own is a posix-ism. Not having a copy of the spec handy to look at, I can't cite page-and-paragraph -- but it seems to me that the posix-ish behavior is to not allow non-privileged