Execute bash script on user level

xerox

Verified User
Joined
Jul 16, 2019
Messages
151
Hi i would like to execute bash script on my own user account.

As i understand there is no access to users to execute bash, but is it possible somehow to enable on specified user?

Cron:
/usr/bin/bash /home/specialuser/script.sh

---
Thanks
 
You can enable cron jobs per user and execute a script like that, no problem at all.
Users do not need shell access for that.

But you might not need to specify /usr/bin/bash for that probably. This is what I used on a vps for a friend of mine as crontab for TS3, can be setup from the DA panel itself:
Code:
*/5 * * * * /home/user/ts3check.sh >/dev/null 2>&1
it's as easy as that.
 
Thanks for the info,

It's interesting because the cron wont run my script.

I have already set chmod +x script.sh

Can we debug this somehow?

Thanks
 
Thanks for the info,

It's interesting because the cron wont run my script.

I have already set chmod +x script.sh

Can we debug this somehow?

Thanks

Nevermind, i got it to work after i changed chown. Thanks
 
Back
Top