| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
On 2014-05-31 10:03, Ooker [email protected] [sed-users] wrote:
> When I run sed in a command, I gave these weird errors:
> 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.
>
> The command I use is normal:
> 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