Skip to main content
link adjusted
Source Link
Rudi
  • 19.7k
  • 3
  • 57
  • 77

AFAIK you can't give su a password on the command line. But you can use sudo, add the permitted user into /etc/sudoers1/etc/sudoers with no password, so you can run your command as sudo -u webside-user-name 'cd /live/website && git fetch && git checkout master'.

AFAIK you can't give su a password on the command line. But you can use sudo, add the permitted user into /etc/sudoers1 with no password, so you can run your command as sudo -u webside-user-name 'cd /live/website && git fetch && git checkout master'.

AFAIK you can't give su a password on the command line. But you can use sudo, add the permitted user into /etc/sudoers with no password, so you can run your command as sudo -u webside-user-name 'cd /live/website && git fetch && git checkout master'.

Source Link
Rudi
  • 19.7k
  • 3
  • 57
  • 77

AFAIK you can't give su a password on the command line. But you can use sudo, add the permitted user into /etc/sudoers1 with no password, so you can run your command as sudo -u webside-user-name 'cd /live/website && git fetch && git checkout master'.