Re: Override prompt when deleting a file

2005-11-18 Thread Lowell Gilbert
Robert Ftizpatrick [EMAIL PROTECTED] writes:

 I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
 receive this override prompt?
 
 -bash-2.05b$ ls -la massage.xls
 -rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
 -bash-2.05b$ rm massage.xls
 override rw-r--r--  admin/admin for massage.xls?

Check the permissions on the directory?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Override prompt when deleting a file

2005-11-18 Thread Robert Fitzpatrick
On Fri, 2005-11-18 at 09:51 -0500, Lowell Gilbert wrote:
 Robert Ftizpatrick [EMAIL PROTECTED] writes:
 
  I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
  receive this override prompt?
  
  -bash-2.05b$ ls -la massage.xls
  -rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
  -bash-2.05b$ rm massage.xls
  override rw-r--r--  admin/admin for massage.xls?
 
 Check the permissions on the directory?
 ___

Yes, I did...

-bash-2.05b$ ls -la
total 460441
drwxr-xr-x  18 admin  admin   1024 Nov 18 08:38 .
drwxr-xr-x   5 admin  admin512 Jan  4  2005 ..

--
Robert

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


Re: Override prompt when deleting a file

2005-11-18 Thread Tofik Suleymanov

Robert Fitzpatrick wrote:


On Fri, 2005-11-18 at 09:51 -0500, Lowell Gilbert wrote:
 


Robert Ftizpatrick [EMAIL PROTECTED] writes:

   


I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
receive this override prompt?

-bash-2.05b$ ls -la massage.xls
-rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
-bash-2.05b$ rm massage.xls
override rw-r--r--  admin/admin for massage.xls?
 


Check the permissions on the directory?
___
   



Yes, I did...

-bash-2.05b$ ls -la
total 460441
drwxr-xr-x  18 admin  admin   1024 Nov 18 08:38 .
drwxr-xr-x   5 admin  admin512 Jan  4  2005 ..

--
Robert

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

 


add alias ls 'ls -f' to shell startup script
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Override prompt when deleting a file

2005-11-18 Thread Robert Fitzpatrick
On Fri, 2005-11-18 at 17:50 +, Tofik Suleymanov wrote:
 I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
 receive this override prompt?
 
 -bash-2.05b$ ls -la massage.xls
 -rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
 -bash-2.05b$ rm massage.xls
 override rw-r--r--  admin/admin for massage.xls?
   
 
 Check the permissions on the directory?
 ___
 
 
 
 Yes, I did...
 
 -bash-2.05b$ ls -la
 total 460441
 drwxr-xr-x  18 admin  admin   1024 Nov 18 08:38 .
 drwxr-xr-x   5 admin  admin512 Jan  4  2005 ..
 

 add alias ls 'ls -f' to shell startup script

And what does this do?

--
Robert

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


Re: Override prompt when deleting a file

2005-11-18 Thread Robert Ftizpatrick
On Fri, 2005-11-18 at 07:58 -0800, Micah wrote:
  I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
  receive this override prompt?
 
  -bash-2.05b$ ls -la massage.xls
  -rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
  -bash-2.05b$ rm massage.xls
  override rw-r--r--  admin/admin for massage.xls?
  
 
  Check the permissions on the directory?
  -bash-2.05b$ ls -la
  total 460441
  drwxr-xr-x  18 admin  admin   1024 Nov 18 08:38 .
  drwxr-xr-x   5 admin  admin512 Jan  4  2005 ..
 
 To original poster: is the immutable bit set on the file?

I don't believe so...is this how you tell?

-bash-2.05b$ ls -lo massage.xls
-rw-r--r--  1 admin  admin  - 4463104 Aug 29 17:25 massage.xls

--
Robert

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


Re: Override prompt when deleting a file

2005-11-18 Thread Kevin Kinsey

Robert Ftizpatrick wrote:


On Fri, 2005-11-18 at 07:58 -0800, Micah wrote:
 


I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
receive this override prompt?

-bash-2.05b$ ls -la massage.xls
-rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
-bash-2.05b$ rm massage.xls
override rw-r--r--  admin/admin for massage.xls?
   
   


Check the permissions on the directory?
 


-bash-2.05b$ ls -la
total 460441
drwxr-xr-x  18 admin  admin   1024 Nov 18 08:38 .
drwxr-xr-x   5 admin  admin512 Jan  4  2005 ..

   


To original poster: is the immutable bit set on the file?
   



I don't believe so...is this how you tell?

-bash-2.05b$ ls -lo massage.xls
-rw-r--r--  1 admin  admin  - 4463104 Aug 29 17:25 massage.xls
 



see chflags(1).  Most likely it is.  If you really want the file gone,
(as root*):

#chflags noschg massage.xls
#rm massage.xls

HTH,

KDK

*admin is _also_ a UID 0 account?  Seems that could be dangerous?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Override prompt when deleting a file

2005-11-18 Thread Robert Ftizpatrick
On Fri, 2005-11-18 at 10:31 -0600, Kevin Kinsey wrote:
 I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
 receive this override prompt?
 
 -bash-2.05b$ ls -la massage.xls
 -rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
 -bash-2.05b$ rm massage.xls
 override rw-r--r--  admin/admin for massage.xls?
 
 
 
 Check the permissions on the directory?
   
 
 -bash-2.05b$ ls -la
 total 460441
 drwxr-xr-x  18 admin  admin   1024 Nov 18 08:38 .
 drwxr-xr-x   5 admin  admin512 Jan  4  2005 ..
 
 
 
 To original poster: is the immutable bit set on the file?
 
 
 
 I don't believe so...is this how you tell?
 
 -bash-2.05b$ ls -lo massage.xls
 -rw-r--r--  1 admin  admin  - 4463104 Aug 29 17:25 massage.xls
   
 
 
 see chflags(1).  Most likely it is.  If you really want the file gone,
 (as root*):
 
 #chflags noschg massage.xls
 #rm massage.xls
 

I'm sure I can make it happen. My problem is the rsync backup everynight
fails to delete this and other files like it saying 'Permission denied'.
So, I am assuming it is because of this issue. The rsync script logs in
as admin. How can I resolve this?

--
Robert


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


Re: Override prompt when deleting a file

2005-11-18 Thread Micah

Robert Ftizpatrick wrote:

On Fri, 2005-11-18 at 10:31 -0600, Kevin Kinsey wrote:


I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I
receive this override prompt?

-bash-2.05b$ ls -la massage.xls
-rw-r--r--  1 admin  admin  4463104 Aug 29 17:25 massage.xls
-bash-2.05b$ rm massage.xls
override rw-r--r--  admin/admin for massage.xls?
  
  



Check the permissions on the directory?




-bash-2.05b$ ls -la
total 460441
drwxr-xr-x  18 admin  admin   1024 Nov 18 08:38 .
drwxr-xr-x   5 admin  admin512 Jan  4  2005 ..

  



To original poster: is the immutable bit set on the file?
  



I don't believe so...is this how you tell?

-bash-2.05b$ ls -lo massage.xls
-rw-r--r--  1 admin  admin  - 4463104 Aug 29 17:25 massage.xls




see chflags(1).  Most likely it is.  If you really want the file gone,
(as root*):

#chflags noschg massage.xls
#rm massage.xls




I'm sure I can make it happen. My problem is the rsync backup everynight
fails to delete this and other files like it saying 'Permission denied'.
So, I am assuming it is because of this issue. The rsync script logs in
as admin. How can I resolve this?

--
Robert


If you clear the immutable bit (as root), rsync (as admin) should be 
able to remove the file as normal.  You'll just have to figure out why 
the files are immutable in the first place.  You may just be able to 
clear the immutable bit on all the files and make the problem go away or 
you may need a more complex solution.


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


Re: Override prompt when deleting a file

2005-11-18 Thread Robert Ftizpatrick
On Fri, 2005-11-18 at 10:34 -0800, Micah wrote:
  I'm sure I can make it happen. My problem is the rsync backup everynight
  fails to delete this and other files like it saying 'Permission denied'.
  So, I am assuming it is because of this issue. The rsync script logs in
  as admin. How can I resolve this?
  
  --
  Robert
 
 If you clear the immutable bit (as root), rsync (as admin) should be 
 able to remove the file as normal.  You'll just have to figure out why 
 the files are immutable in the first place.  You may just be able to 
 clear the immutable bit on all the files and make the problem go away or 
 you may need a more complex solution.

Yeah, I don't know, the rsync script has been running for over a year
and all of sudden it can't delete files. But I don't think the files are
immutable. Did my previous post with the listing show this? But I tried
and still

-bash-2.05b$ ls -lo massage.xls
-rw-r--r--  1 admin  admin  - 4463104 Aug 29 17:25 massage.xls
-bash-2.05b$ su
Password:
esmtp# chflags -R noschg ./
esmtp# exit
-bash-2.05b$ rm massage.xls
override rw-r--r--  admin/admin for massage.xls?

--
Robert

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


Re: Override prompt when deleting a file

2005-11-18 Thread Joost Bekkers
On Fri, Nov 18, 2005 at 02:12:35PM -0500, Robert Ftizpatrick wrote:
 On Fri, 2005-11-18 at 10:34 -0800, Micah wrote:
   I'm sure I can make it happen. My problem is the rsync backup everynight
   fails to delete this and other files like it saying 'Permission denied'.
   So, I am assuming it is because of this issue. The rsync script logs in
   as admin. How can I resolve this?
   
   --
   Robert
  
  If you clear the immutable bit (as root), rsync (as admin) should be 
  able to remove the file as normal.  You'll just have to figure out why 
  the files are immutable in the first place.  You may just be able to 
  clear the immutable bit on all the files and make the problem go away or 
  you may need a more complex solution.
 
 Yeah, I don't know, the rsync script has been running for over a year
 and all of sudden it can't delete files. But I don't think the files are
 immutable. Did my previous post with the listing show this? But I tried
 and still
 
 -bash-2.05b$ ls -lo massage.xls
 -rw-r--r--  1 admin  admin  - 4463104 Aug 29 17:25 massage.xls
 -bash-2.05b$ su
 Password:
 esmtp# chflags -R noschg ./
 esmtp# exit
 -bash-2.05b$ rm massage.xls
 override rw-r--r--  admin/admin for massage.xls?
 

This might sound a bit far fetched, but I can't shake the feeling it might be 
right.
Could it be possible you have 2 admin's in your passwd? vipw doesn't complain 
when you
try something like that, so

Would you mind doing a 'ls -ln' (uid/gid numeric) and the an 'echo $UID' as 
admin.

-- 
greetz Joost
[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: Override prompt when deleting a file

2005-11-18 Thread Robert Ftizpatrick
On Fri, 2005-11-18 at 20:53 +0100, Joost Bekkers wrote:

 Would you mind doing a 'ls -ln' (uid/gid numeric) and the an 'echo $UID' as 
 admin.
 

Bada bing! Seems another administrator here got LDAP working on the
server with an admin user as well, hence, when I login now, it uses LDAP
with UID 501 instead of passwd admin with 1000, which all the files are
owned by.

Thanks to all for the help :)


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