Re: sed: preserving permissions for ‘./sedV1DdTm’: Operation not permitted
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <1765910.6KIrIjB1vc@ooker-aspire-4741> |
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. On Saturday 31 May 2014 07:10:23 Tim Chase wrote: > 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 ---------- 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]