[SailfishDevel] sudo doesn't work in platform SDK

Andrew Branson andrew.branson at jolla.com
Fri Dec 23 20:11:38 UTC 2016


Hi,

Where's your sdk installed? I had a problem when I tried to install it in my home. It was an encrypted home which was mounted with nosetuid, which overrode the setuid flag on the sudo binary.

Hope that helps,

Andrew 

On Friday, 23 December 2016, Erik Lundin wrote:
> Hello,
> 
> I'm trying to get going with the platform SDK, following
> https://sailfishos.org/wiki/Platform_SDK_Installation, but sudo doesn't
> seem to work. This is what I get when entering the SDK environment:
> 
> erik at zix:~/dev$ sfossdk
> [sudo] password for erik:
> Mounting system directories...
> Mounting / as /parentroot
> Mounting home directory: /home/erik
> Entering chroot as erik
> su: ignoring --preserve-environment, it's mutually exclusive with --login
> Last login: Sun Dec 18 21:35:58 UTC 2016 on pts/1
> PlatformSDK erik at zix:~/dev$ sudo ssu ar sdk
> sudo: effective uid is not 0, is sudo installed setuid root?
> 
> sudo has the setuid flag, so I don't understand what the problem is.
> 
> PlatformSDK erik at zix:~/dev$ ls -l /usr/bin/sudo
> -rwsr-xr-x 1 root root 123288 Aug 14  2013 /usr/bin/sudo
> 
> OS: Linux Mint 17.3.
> 
> /Erik
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.or

-- 
Sent from my Jolla


More information about the Devel mailing list