Koozali.org formerly Contribs.org

on Koozail 9.2 can NOT login & run a program except as root

on Koozail 9.2 can NOT login & run a program except as root
« on: January 11, 2018, 11:29:29 PM »
RE:  on Koozail 9.2 can NOT login & run a program except as root
for all the previous SME servers  and Koozail  9.1, after adding a user, i could run the below script & then run my old program, called filepro Plus, would run for all users
 the script is:
read -p "Enter user name, then press ENTER.  " username
chsh -s /bin/bash $username
cd /home/e-smith/files/users
cp Master_DOTPROFILE /home/e-smith/files/users/$username/.profile

now  with Koozail 9.2 I  must either run my Filepro Plus program as root or change fields 3 & 4 to 0 in the /etc/passwd file for all users.

can anyone please advise a better way to do this?
thank for the help - Old Tony
...

Offline Jean-Philippe Pialasse

  • *
  • 1,180
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: on Koozail 9.2 can NOT login & run a program except as root
« Reply #1 on: January 12, 2018, 03:56:22 AM »
Hi OldTony

RE:  on Koozail 9.2 can NOT login & run a program except as root
for all the previous SME servers  and Koozail  9.1, after adding a user, i could run the below script & then run my old program, called filepro Plus, would run for all users
 the script is:
read -p "Enter user name, then press ENTER.  " username
chsh -s /bin/bash $username
cd /home/e-smith/files/users
cp Master_DOTPROFILE /home/e-smith/files/users/$username/.profile


now  with Koozail 9.2 I  must either run my Filepro Plus program as root or change fields 3 & 4 to 0 in the /etc/passwd file for all users.
this is literally converting all users as root.

can anyone please advise a better way to do this?
thank for the help - Old Tony

well I suggest you do this a step at a time. "can NOT login & run a program except as root"

how do you try to login ? ssh ? on the server ?
from what you say you are not able to login but I see no reason that changing group and user id will change this. And my guess is you are able to login (after changing your user to use bash using chsh), but issue is to run the software

so start from the basic:
how do you install your software ?
what are the permission on the software files ?
what are the permissions on the folders to the program?
what is the error when trying to launch your program ?

my wild guess is that your software is chmod /chown so that it is only executable by root ...