This is usually how I do it via command line:
Code: Select all
[daminassad@oracle]$ sudo rm file1.txt
Password:
Changing the ownership of the file to root doesn't help.
Code: Select all
[daminassad@oracle]$ sudo rm file1.txt
Password:
Code: Select all
echo "YourPasswordHere" | sudo -S YourLinuxCommand