Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 9362  / 2 Years ago, sun, march 6, 2022, 10:33:54

Possible Duplicate:

Ubuntu took away permissions from my Data partition






I reformatted a NTFS partition on my system with ext4 because I want to use it on my current Ubuntu installation, not on Windows. I added an entry to /etc/fstab to mount it at start-up. The mount point is /home/username/bin. I changed the owner of /home/username/bin and all of its sub-directories to my regular account and its user group. Finally, I set all permissions to 755.



My /etc/fstab looks as follows:



proc        /proc               proc    nodev,noexec,nosuid               0       0
UUID=[uuid] / ext4 errors=remount-ro 0 1
UUID=[uuid] /data vfat utf8,umask=007,gid=46 0 1
UUID=[uuid] /home ext4 defaults 0 2
UUID=[uuid] /home/username/bin ext4 rw,suid,dev,exec,auto,user,async 0 2
UUID=[uuid] none swap sw 0 0


My problem is now that while I'm able to read and write files on this new partition, I cannot run applications/programs located there. As a regular user, I always get a "permission denied" error. As root (with sudo), just nothing happens, which means it immediately puts me back to the shell prompt. The applications should produce textual output or open windows. Some of these applications are binaries, some are scripts. I try to launch them with ./program. If I copy them back to my home folder, I can run them without problems.



Actually, I kept these applications for months in another sub-directory /home/username/apps of my home folder and ran them from there, without any problems.



How can I fix this? What am I doing wrong? :)


More From » 12.04

 Answers
2

I solved it. The problem were the mount options in /etc/fstab. Changing them to defaults (which is equivalent to changing user to nouser) solves the problem, everything works now as expected.


[#36809] Tuesday, March 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laiuct

Total Points: 44
Total Questions: 105
Total Answers: 107

Location: Seychelles
Member since Mon, Feb 15, 2021
3 Years ago
;