Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2681

General Questions • Re: How do you change non-root partition permissions?

$
0
0
Put a line in /etc/fstab to mount it in folder you own, like ~/data or such.
If you would, please give me an example on how to do that.
Below is what it has.

Code:

# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a device; this may# be used with UUID= as a more robust way to name devices that works even if# disks are added and removed. See fstab(5).## <file system>             <mount point>  <type>  <options>  <dump>  <pass>UUID=1DEF-2CFF                            /boot/efi      vfat    defaults,noatime 0 2UUID=bff74953-ac74-47fb-ba4d-95f4f88f82cc /              ext4    defaults,noatime 0 1
As you can see, it shows the root partition in ext4.
It did show the 3rd Data btrfs partition but I did something and it is no longer there.

I did a user chmod and that went through.

Code:

noid@Laptop:~$ sudo chmod 700 /media/noid/[sudo] password for noid: noid@Laptop:~$
That made the SPECIAL permissions accessible however the regular permissions were still greyed out.

So I tried to chmod the partition and that failed.

Code:

noid@Laptop:~$ sudo chmod 700 /media/noid/D:\Datachmod: cannot access '/media/noid/D:Data': No such file or directorynoid@Laptop:~$ sudo chmod 700 /media/noid/D:x5cDatachmod: cannot access '/media/noid/D:x5cData': No such file or directorynoid@Laptop:~$
So Ok, then I tried to chown several ways and they all failed.

Code:

noid@Laptop:~$ sudo chown noid /media/noid/D:\Data rwxchown: cannot access '/media/noid/D:Data': No such file or directorychown: cannot access 'rwx': No such file or directorynoid@Laptop:~$ Sudo chown noid rwxbash: Sudo: command not foundnoid@Laptop:~$ Sudo chown rwx noid /media/noid/D:\Databash: Sudo: command not foundnoid@Laptop:~$ chown rwx noid /media/noid/D:\Datachown: invalid user: ‘rwx’noid@Laptop:~$ chown noid rwx /media/noid/D:\Datachown: cannot access 'rwx': No such file or directorychown: cannot access '/media/noid/D:Data': Permission deniednoid@Laptop:~$
Now I have a new problem, I just lost access to my folder all together.
Guess I'll have to undo the chmod.

I Just now did the chmod 777 and got access to my folder back again but lost the special permissions.
Err...

Here are pictures of what I have.
I am thinking about changing the mount point from /media/noid/D:\Data to /D:\Data. will that work?
I am at a loss. Any ideas???
Screenshot_Part-Man.png

Screenshot_Partitions.png

Statistics: Posted by Noidly1 — 2024-10-03 21:47



Viewing all articles
Browse latest Browse all 2681

Trending Articles