Can't copy /etc/passwd

Basil Chupin blchupin at iinet.net.au
Fri Jan 20 13:22:52 UTC 2012


On 21/01/12 00:11, 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?

I have an idea that there are some actions which cannot be performed by 
someone who becomes root by using the "sudo" command; one needs to 
actually login as root in order to do certain things - and this password 
thing may be one of them.

BC

-- 
It is in the nature of things that every time you try to avoid one danger you run into another.
                            Niccolo Machiavelli






More information about the ubuntu-users mailing list