" If you wish to run apt-get, you will either need to grant a root password, 'and use su'.."<div><br></div><div>In Ubuntu Core "root" user is already added but i don't know root user password (and it dont ask me to reset root user password adduser command just say user already present), may be i missed something very basic? </div>
<div><br></div><div>I would like to use it to install packages (i.e. sudo and other necessary, resolving dependencies manually is tedious :( ) su asks for root password but i dont know it.. For the same purpose i added "ubuntu" user to sudo group (but you already clarified without sudo pakcages it would not have any effect).</div>
<div><br></div><div>The reason i am interesting these packages from Ubuntu Core is because it seems something really obvious to have root access in an OS, but su asks for password which i dont know... </div><div><br></div>
<div>Thanks,</div><div>Saqlain.<br><div><br><div class="gmail_quote">On Tue, Dec 4, 2012 at 7:14 PM, Emmet Hikory <span dir="ltr"><<a href="mailto:persia@ubuntu.com" target="_blank">persia@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Saqlain Abbas wrote:<br>
> I have installed Ubuntu core on VM i followed instruction from<br>
><br>
> <a href="https://wiki.ubuntu.com/Core" target="_blank">https://wiki.ubuntu.com/Core</a><br>
><br>
> I am able to boot and login, but if try apt-get install I get below errors,<br>
> my system (virgin ubuntu core) got no packages installed like synaptic<br>
> package manager etc<br>
><br>
> "could not open lock file /var/lib/dpkg/lock -open (13:permission denied)<br>
> unable to lock the administration directory (/var/lib/dpkg) , are you root?"<br>
><br>
> I can't try using "sudo" command as it is not installed on (ubuntu core).<br>
<br>
</div> If you wish to run apt-get, you will either need to grant a root password,<br>
and use su, or mount the filesystem on some other machine, chroot into it, and<br>
install sudo from the chroot.<br>
<br>
> [T]he user i created "ubuntu" I added it to adm and sudo groups,<br>
<div class="im">> "groups" command shows it is added to "ubuntu" "adm" and "sudo" groups. My<br>
> other part of question is as user is added to sudo group why i got no<br>
> "root" permission?<br>
<br>
</div> Because the sudo package is not installed, so there is no interpretation<br>
of the sudo group meaning anything. While the adm group does grant the ability<br>
to access many files, it does not provide for any sort of root access.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Emmet HIKORY<br>
<br>
--<br>
Ubuntu-devel-discuss mailing list<br>
<a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Kind Regards,<div>Saqlain Abbas.</div><br>
</div></div>