bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'sed -i' fails if the file has sufficient perms but not its directory


From: Toralf Förster
Subject: 'sed -i' fails if the file has sufficient perms but not its directory
Date: Fri, 3 Jul 2015 20:22:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1

I tried this, which won't work :

address@hidden ~ $ sed -i -e 's/j1/j2/g' perl-5.22/etc/portage/make.conf
sed: couldn't open temporary file perl-5.22/etc/portage/sedw9SFZf: Permission 
denied

whereas I'm allowed to edit that file as the user tinderbox

address@hidden ~ $ vi perl-5.22/etc/portage/make.conf

/me wonders if sed relies on having a temp copy of that file in the same dir or 
not.


-- 
Toralf, pgp key: 872AE508 0076E94E



reply via email to

[Prev in Thread] Current Thread [Next in Thread]