Discussion:
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
Ooker ganuongphap@gmail.com [sed-users]
2014-05-31 02:03:46 UTC
Permalink
When I run sed in a command, I gave these weird errors:
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
sed: preserving permissions for ‘./sedV7ZEli’: Operation not permitted
sed: preserving permissions for ‘./sedHCMYLQ’: Operation not permitted
sed: preserving permissions for ‘./sedgxuMSU’: Operation not permitted
sed: preserving permissions for ‘./sedV4jD3v’: Operation not permitted
sed: preserving permissions for ‘./sedfaEcks’: Operation not permitted


Although sed continues to do what it suppose to do. These errors only

disappear when I use sudo.


The command I use is normal:
sed '/list/d' listt>list


which I appear to be normal if I use it alone. I don't think these are errors
but bugs. What do you think?
--
Ooker.
Stewart Ravenhall stewart.ravenhall@gmail.com [sed-users]
2014-05-31 09:05:26 UTC
Permalink
Please state your operating system and sed version.
Post by Ooker ***@gmail.com [sed-users]
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
sed: preserving permissions for ‘./sedV7ZEli’: Operation not permitted
sed: preserving permissions for ‘./sedHCMYLQ’: Operation not permitted
sed: preserving permissions for ‘./sedgxuMSU’: Operation not permitted
sed: preserving permissions for ‘./sedV4jD3v’: Operation not permitted
sed: preserving permissions for ‘./sedfaEcks’: Operation not permitted
Although sed continues to do what it suppose to do. These errors only
disappear when I use sudo.
sed '/list/d' listt>list
which I appear to be normal if I use it alone. I don't think these are errors
but bugs. What do you think?
--
Ooker.
------------------------------------
------------------------------------
--
Yahoo Groups Links
Tim Chase sed@thechases.com [sed-users]
2014-05-31 12:10:23 UTC
Permalink
Post by Ooker ***@gmail.com [sed-users]
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
Although sed continues to do what it suppose to do. These errors only
disappear when I use sudo.
sed '/list/d' listt>list
In addition to the OS/version info that Stewart requests, what are the
permissions on your working directory? If you have "stat" installed,
you can do it easily with

sh$ stat .
File: `.'
Size: 69632 Blocks: 144 IO Block: 4096 directory
Device: 805h/2053d Inode: 130821 Links: 2000
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-09-22 03:47:06.000000000 -0500
Modify: 2014-05-08 07:25:18.541235406 -0500
Change: 2014-05-08 07:25:18.541235406 -0500
Birth: -

where you want to include the "Access: (0755/drwxr-xr-x) Uid:...
Gid:..." line. Alternatively, if your output file "list" already
exists and you're overwriting, there might be some
file-system-specific attribute that might get revealed with

sh$ lsattr -d .
sh$ lsattr list # where "list" is your output filename

It might also help to know the value of the $TMP, $TEMP, and $TMPDIR
variables:

sh$ echo TMP=$TMP TEMP=$TEMP TMPDIR=$TMPDIR

-tkc
'Edward J. Shornock' ed.shornock@gmail.com [sed-users]
2014-05-31 13:37:55 UTC
Permalink
Post by Tim Chase ***@thechases.com [sed-users]
Post by Ooker ***@gmail.com [sed-users]
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
Although sed continues to do what it suppose to do. These errors only
disappear when I use sudo.
sed '/list/d' listt>list
In addition to the OS/version info that Stewart requests, what are the
permissions on your working directory? If you have "stat" installed,
you can do it easily with
sh$ stat .
File: `.'
Size: 69632 Blocks: 144 IO Block: 4096 directory
Device: 805h/2053d Inode: 130821 Links: 2000
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-09-22 03:47:06.000000000 -0500
Modify: 2014-05-08 07:25:18.541235406 -0500
Change: 2014-05-08 07:25:18.541235406 -0500
Birth: -
I'd also be interested in the file system type. Output like

preserving permissions for ‘./sedV1DdTm’: Operation not permitted

could be normal on a FAT partition.
Ooker ganuongphap@gmail.com [sed-users]
2014-05-31 23:09:18 UTC
Permalink
The list file doesn't exist before I use sed. Its contain is nothing special
(see attachments).
These commands are executed in the folder contains the list file:


stat .
File: ‘.’
Size: 16384 Blocks: 32 IO Block: 16384 directory
Device: 805h/2053d Inode: 17400 Links: 2
Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 46/ plugdev)
Access: 2014-06-01 06:55:45.000000000 +0700
Modify: 2014-06-01 06:55:45.000000000 +0700
Change: 2014-06-01 06:55:45.000000000 +0700

Birth: -


lsattr -d
lsattr: Inappropriate ioctl for device While reading flags on .


lsattr list
lsattr: Inappropriate ioctl for device While reading flags on list


echo TMP=$TMP TEMP=$TEMP TMPDIR=$TMPDIR
TMP= TEMP= TMPDIR=


My OS is Netrunner, sed version is 4.2.2
--
Ooker.
Post by Tim Chase ***@thechases.com [sed-users]
Post by Ooker ***@gmail.com [sed-users]
sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
Although sed continues to do what it suppose to do. These errors only
disappear when I use sudo.
sed '/list/d' listt>list
In addition to the OS/version info that Stewart requests, what are the
permissions on your working directory? If you have "stat" installed,
you can do it easily with
sh$ stat .
File: `.'
Size: 69632 Blocks: 144 IO Block: 4096 directory
Device: 805h/2053d Inode: 130821 Links: 2000
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-09-22 03:47:06.000000000 -0500
Modify: 2014-05-08 07:25:18.541235406 -0500
Change: 2014-05-08 07:25:18.541235406 -0500
Birth: -
where you want to include the "Access: (0755/drwxr-xr-x) Uid:...
Gid:..." line. Alternatively, if your output file "list" already
exists and you're overwriting, there might be some
file-system-specific attribute that might get revealed with
sh$ lsattr -d .
sh$ lsattr list # where "list" is your output filename
It might also help to know the value of the $TMP, $TEMP, and $TMPDIR
sh$ echo TMP=$TMP TEMP=$TEMP TMPDIR=$TMPDIR
-tkc
----------


3B7V
I47A_2014-05-30
I54A_2014-05-30
I54L_2014-05-30
I54M_2014-05-30
I54T_2014-05-30
I54V_2014-05-30
I84V_2014-05-30
listt
V82A_2014-05-30
V82F_2014-05-30
V82FI84V_2014-05-31
V82L_2014-05-30
V82S_2014-05-30
V82T_2014-05-30


----------


3B7V
I47A_2014-05-30
I54A_2014-05-30
I54L_2014-05-30
I54M_2014-05-30
I54T_2014-05-30
I54V_2014-05-30
I84V_2014-05-30
V82A_2014-05-30
V82F_2014-05-30
V82FI84V_2014-05-31
V82L_2014-05-30
V82S_2014-05-30
V82T_2014-05-30




[Non-text portions of this message have been removed]
davidoff12001@yahoo.de [sed-users]
2014-06-08 21:59:21 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...