I use Geany to edit my bash scripts in my bin directory.
When I try to save them, I get
Error saving file. Operation not permitted.
File on disk may be truncated.
andy7_~/bin$ ll
total 376
drwxrwxr-x 2 andy andy 4096 Jul 23 14:16 ./
drwxr-xr-x 36 andy andy 4096 Jul 23 14:12 ../
-rwxrwxr-x 1 andy root 64 Jan 22 22:19 30_VOL.sh*
-rwxrwxrwx 1 andy root 59 Dec 22 2017 4kYouTube2_Mp3.sh*
-rwxr-xr-x 1 andy root 92 Jan 22 22:23 50_Percent_VOL.sh*
-rwxrwxr-x 1 andy andy 92 Jul 14 12:41 70_Percent_VOL.sh*
-rwxrwxrwx 1 andy root 1767 May 15 2017 arrange_dt.py*
-rwxrwxr-x 1 andy andy 2451 Jul 20 15:57 Backup_18.04_AMD.sh*
-rwxrwxrwx 1 andy root 2412 Jul 13 01:46 Backup_AMD.sh*
-rwxrwxr-x 1 andy andy 117 Jul 13 18:32 Bin_Dir.sh*
-rwxrwxrwx 1 andy root 40 Jul 19 13:14 Blank.sh*
-rwxrwxr-x 1 andy andy 44 Jul 13 15:42 boot.sh*
-rwxrwxr-x 1 andy root 709 Jul 17 11:04 Browser_Startup_Time.sh*
your ~/bin should have andy:andy as owner:group Why some of them are root?
From your home dir, sudo chown -R andy:andy /home/andy/bin
all files in bin should have andy andy and you should be able to write.
It did not help.
andy7_/home$ sudo chown -R andy:andy /home/andy/bin
[sudo] password for andy:
chown: changing ownership of '/home/andy/bin/Seamonkey_Startup_Time.sh': Operation not permitted
chown: changing ownership of '/home/andy/bin/Find_File.sh': Operation not permitted
chown: changing ownership of '/home/andy/bin/Relax_Music.sh': Operation not permitted
strange … your bin dir should be 775 andy andy and inside ~/bin, all files should be owned by andy andy
drwxrwxr-x 2 user user 4096 Jul 23 13:30 bin/
inside bin
-rwxrw-r-- 1 user user 199 Jul 19 21:44 fix*
I did not see those 3 files in your first listing (seamonkey, relax music, find file) …
I did not list all the files.
I am trying to delete all the files, delete bin, and then recreate it.
I can delete everything except this.
-rwxr-xr-x 1 andy root 275 Feb 22 2017 Find_File.sh*
I can not change group to andy ?
If I can not get this solved, I will go back to 16.04.
that should delete the file, sudo rm /home/andy/bin/Find_File.sh
The owner is andy so if you’re logged on as andy, you can rwx that file.
Nothing worked, so I reinstalled 18.04 over the old one.
First issue is I have no sound.
Sound preferences, hardware shows nothing.
I ended up format the partition and installing 18.04.
Now my sounds works.