![]() |
2010-01-17
, 21:04
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#11
|
The Following User Says Thank You to Matan For This Useful Post: | ||
![]() |
2010-01-17
, 21:21
|
|
Posts: 876 |
Thanked: 396 times |
Joined on Dec 2009
|
#12
|
>>>sudoers file: syntax error, line 2 <<<
>>>sudoers file: syntax error, line 3 <<<
>>>sudoers file: syntax error, line 4 <<<
/etc/sudoers.d/01sudo changes break sudoers
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = NOPASSWD: /usr/sbin/gainroot
user ALL = NOPASSWD: /usr/sbin/mmc-mount /dev/mmcblk0 /media/mmc1
user ALL = NOPASSWD: /usr/sbin/mmc-mount /dev/mmcblk0p1 /media/mmc1
user ALL = NOPASSWD: /bin/umount /media/mmc1,/bin/umount -l /media/mmc1
user ALL = NOPASSWD: /usr/sbin/osso-usb-mass-storage-enable.sh, /usr/sbin/osso-usb-mass-storage-disable.sh
user ALL = NOPASSWD: /sbin/mkdosfs /dev/mmcblk0*, /usr/sbin/mmc-rename /dev/mmcblk0*
user ALL = NOPASSWD: /etc/init.d/af-base-apps stop , /etc/osso-af-init/gconf-daemon.sh stop
user ALL = NOPASSWD: /etc/init.d/af-base-apps start , /etc/osso-af-init/gconf-daemon.sh start
user ALL = NOPASSWD: /etc/init.d/osso-systemui restart
user ALL = NOPASSWD: /usr/sbin/gconf-clean.sh
user ALL = NOPASSWD: /usr/sbin/chroot /mnt/initfs /usr/bin/retutime *
user ALL = NOPASSWD: /sbin/insmod /mnt/initfs/lib/modules/current/g_file_storage.ko stall=0 file=/dev/mmcblk0
user ALL = NOPASSWD: /sbin/insmod /mnt/initfs/lib/modules/current/g_ether.ko
user ALL = NOPASSWD: /sbin/rmmod g_file_storage
user ALL = NOPASSWD: /sbin/rmmod g_ether
user ALL = NOPASSWD: /usr/sbin/osso-backup-restore-locale
user ALL = (install) NOPASSWD: /usr/bin/app-installer-tool
![]() |
2010-01-17
, 21:26
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#13
|
![]() |
2010-01-17
, 21:34
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#14
|
The Following User Says Thank You to Matan For This Useful Post: | ||
![]() |
2010-01-17
, 21:36
|
|
Posts: 2,869 |
Thanked: 1,784 times |
Joined on Feb 2007
@ Po' Bo'. PA
|
#15
|
Add the application to sudoers by creating a file called
/etc/sudoers.d/emelfm2.sudoers containing:
user ALL = NOPASSWD: /usr/bin/emelfm2
Then use Exec = /usr/bin/sudo /usr/bin/emelfm2
or Exec = osso-xterm "sudo emelfm2"
The Following User Says Thank You to YoDude For This Useful Post: | ||
![]() |
2010-01-17
, 21:48
|
|
Posts: 876 |
Thanked: 396 times |
Joined on Dec 2009
|
#16
|
Just don't reboot, Bec, as you might need to reflash your system if you do. Copy a working 01sudo file (for example, from here: http://my.arava.co.il/~matan/770/n900/01sudo ) and run update-sudoers.
![]() |
2010-01-17
, 21:59
|
|
Posts: 876 |
Thanked: 396 times |
Joined on Dec 2009
|
#18
|
![]() |
2010-01-17
, 22:09
|
|
Posts: 876 |
Thanked: 396 times |
Joined on Dec 2009
|
#19
|
The simple addition of an extra space in a line while editing with a plain ol' text editor will screw things up...