Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - su command (switch user id) crash on QNX 6.6: (4 Items)
   
su command (switch user id) crash on QNX 6.6  
Hello,

I am new to QNX, and have recently installed the QNX 6.6.0 Neutrino
RTOS runtime in VMware Player, from theVM-QNXSDP660-201402230339.iso
image (downloaded from this link
http://www.qnx.com/download/feature.html?programid=26217).

I have created a new user and set up passwords for both root and the
new user.  However, I am having problems with the "su" command. I can
switch from root (logged in automatically) to the new user without a
problem:

# su new_user

(as root, I'm never prompted for the user's password). However, when
trying to switch from new_user to root:

$ su root
password:

After entering the password, the su command crashes wth the following error:

*** stack smashing detected ***: su terminated
Abort (core dumped)

Note 1: I have modified the setuid property of the su command with

# chmod u+s /bin/su

as described in the User's guie and in this post:
http://www.openqnx.com/phpbbforum/viewtopic.php?t=218

so the command now has the following permissions: -rwsr-xr-x

Note 2: If I remove the password for root, the crash does not hapen,
i.e., everything works fine.

Any help with this issue will be greately appreciated.

Best regards,
damjan
Re: su command (switch user id) crash on QNX 6.6  
Hi Damjan,

Thank you for your report. This is a known issue. Please contact your 
support channel for a fix.

Regards,

Ryan Mansfield
Re: su command (switch user id) crash on QNX 6.6  
On 14-08-10 03:31 PM, Ryan Mansfield wrote:
> Hi Damjan,
>
> Thank you for your report. This is a known issue. Please contact your
> support channel for a fix.

In the meantime, attached is an experimental x86 su to hold you over.

Regards,

Ryan Mansfield

Attachment: Text su 99.27 KB
Re: su command (switch user id) crash on QNX 6.6  
Hi Ryan,

thanks a lot for the quick reply! The su you provided is working for me :)

Best,
damjan