Note: i am reposting the question as i am not able to reply or comment.
I am creating a non-root user to execute an object file alone (without root access). My intention is to have the user run a file which is residing at
/atlas/Bin. So i set
user:x:0:0:test:/:/atlas/Bin/object. But when I open a new shell(through teraterm) over SSH to login to the user, I get an error as it cannot find the object.
I have made the changes to
/etc/profile to set the PATH to include
/atlas/Bin to help find the object. Not sure what I am missing here. If I instead login with the root user over SSH, I can execute this object without an issue.
I am providing the
/etc values I use for the build file below.
root:x:0:0:root:/:/bin/sh .... user:x:0:0:test:/:/atlas/Bin/object sshd:x:15:6:sshd:/var/chroot/sshd:/bin/sh
root:x:0:root ... sshd:x:6:user
PATH=/atlas/Bin:/usr/bin:/bin:/usr/sbin:/sbin LD_LIBRARY_PATH=/lib:/usr/lib:/lib/dll/ alias ll="ls -l"
Host * SendEnv LANG LC_*
Protocol 2 LoginGraceTime 600 LogLevel DEBUG3 PermitRootLogin yes PasswordAuthentication yes PermitEmptyPasswords no