Can't copy /etc/passwd
Rashkae
ubuntu at tigershaunt.com
Fri Jan 20 13:55:08 UTC 2012
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.
More information about the ubuntu-users
mailing list