Hi all,
when i try to run any sudo command , it is not running
instead it gives
"username not in the sudoers file".
it is problem in my redhat computer
Thanks
Pon
sudo ./file.sh
./file.sh
sudo chmod 777 ./file.sh
chmod 777
sudo chmod 777
#!/bin/bash rsync.exe -rltDvP --exclude "System Volume Information" --exclude "RECYCLER" --exclude=\$RECYCLE.BIN --delete "/cygdrive/c/users/<USERNAME> /desktop/mvi_1840.mov" "/cygdrive/c/users/<USERNAME>/desktop/test/"
spawn scp $usr@$host:$flnm . expect { -re "(.*)assword:" { send -s "$pswd\r" } }
spawn scp file.txt user@host:file.txt expect { -re "(.*)assword:" { send -s "password\r" } "you sure you want to continue connecting" { send -s "yes\r" exp_continue } }