> On 4/25/09, Aaron Martinez <m...@proficuous.com> wrote: >> I'm running OpenBSD 4.4 Stable and have created a little shell script >> menu >> program that I want certain users to have as their only interaction with >> the system. I created users using the script as their shell and also >> put >> it in /etc/shells but when the user logs in they get a standard shell. >> I >> was testing it through ssh so I thought maybe it had something to do >> with >> the environment but the same thing happens when I log in locally. If >> log >> in as root and then "su - <username>" the script runs as expected. >> >> Is this the wrong way to do this? Would it be better putting something >> in >> the .profile? >> >> Can anyone shed any light as to why this is happening? >> >> Thanks, >> >> Aaron Martinez >> > As a mind reader I'm guessing permissions....... > some more info might make it less of a guess.... >
I suppose it could be permissions, but the file/script is located in /usr/local/bin with permissions set to 755. Additionally, when i log in as one of the restricted users that are supposed to have the script as their shell, i have no problem running the script if i call it manually. What additional information would be helpful? I'd be glad to provide it. Aaron