View Single Post
Posts: 175 | Thanked: 210 times | Joined on Mar 2013
#3248
Hello,

First of all I would like to say thanks for the images and the effort put in this.

I have a little problem coming from my side and I would need a little bit of help.

I already used Easy Debian on my previous N900 without any real issue, but today I tried to set it up on my second N900 on which I have made some significant changes.
So I will detail here the changes I made on my second N900 (and are related somehow to Easy Debian) and the error message I get when I try to launch an image.

First the error is :

Code:
~ $ debbie
Starting Debian shell...
Chroot dir specified: /.debian
No image file or partition specified.
ls: /home/user/MyDocs/debian*.img*: No such file or directory
/.debian has a qmount already!
/media/mmc1/debian_jessie2sulu_armhf.img already mounted on /.debian...
Everything set up, running chroot...
chroot: can't execute 'su': Exec format error
So apparently a problem with su.

The changes I've made to the second N900 (basically I wanted for the root password to be required for becoming root) :

Code:
/etc/sudoers.d/01sudo
user ALL = PASSWD: /usr/sbin/gainroot

/home/user/.profile
alias su='root'
I also had to change /etc/sudoers.d/chroot.sudoers from
Code:
Defaults env_keep+=GTK_MODULES
user ALL = NOPASSWD: ALL
to

Code:
Defaults env_keep+=GTK_MODULES
user ALL = NOPASSWD: /sbin/debian
so that the root password is required when using su (or root) command, but even without changing the chroot.sudoers file it still gives the error.

How can I correct this without giving away the security put in place (root password required to become root)?
Should I put something else in /etc/sudoers.d/chroot.sudoers?