[solved] Re: Can't copy /etc/passwd
Olivier Pavilla
olivier.pavilla at linux-squad.com
Fri Jan 20 14:04:53 UTC 2012
Le 20/01/2012 14:55, Rashkae a écrit :
> On 01/20/2012 08:11 AM, Olivier Pavilla wrote:
>> Hi everyone.
>>
>> I followed this howto to chroot 32 bits ubuntu distro.
>> https://help.ubuntu.com/community/BasicChroot
>> But I got a problem.
>> I can't copy /etc/passwd to /32bits/etc/passwd
>> I get this error message:
>>
>> oliviern at korriban:~$ sudo grep "^[^:]*:x:[0-9][0-9][0-9][0-9]:"
>> /etc/passwd>> /32bits/etc/passwd
>> bash: /32bits/etc/passwd: Permission non accordée
>> olivier at korriban:~$ ls -lha /32bits/etc/passwd
>> -rw-r--r-- 1 root root 761 2012-01-20 05:49 /32bits/etc/passwd
>>
>> Does anyone have idea?
>>
>
> Your problem is sudo redirection. See here:
>
> http://www.brandonhutchinson.com/Redirection_with_sudo.html
>
> I'm not at all sure what dance you'll have to do to get quotes working
> within quotes. Personally, I'm lazy, and would simply use sudo -s to
> open a root level command prompt.
>
>
Thank you for this really interesting idea.
After I did sudo -s
It works
grep "^[^:]*:x:[0-9][0-9][0-9][0-9]:" /etc/passwd>> /32bits/etc/passwd
--
--
Olivier Pavilla
http://www.linux-squad.com
"Les fautes d'orthographes de mes propos sont sous licence Ane bâté 1.0"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120120/a85e17f7/attachment.sig>
More information about the ubuntu-users
mailing list