No permissions for files

Status
Not open for further replies.

theman1

Dabbler
Joined
Nov 8, 2014
Messages
30
I cannot delete files, extract files or anything that seems to require permissions from my share. I can still copy them. How do I go about gaining permissions on these files.
 
Joined
Apr 9, 2015
Messages
1,258
https://www.freebsd.org/doc/handbook/permissions.html

Or if you have little to no experience in *nix OS management.

https://www.pluralsight.com/blog/it-ops/linux-file-permissions

To even learn what the permissions are you will need to run

ls -l

So for instance done after first entering a shell

Code:
 # ls -l
total 28
-rw-------  1 root  wheel	3884 Nov 14 13:11 .bash_history
-rw-r--r--  1 root  wheel	1128 Oct 21 18:00 .bashrc
-rw-r--r--  2 root  wheel	 887 Oct 21 18:00 .cshrc
-rw-r--r--  1 root  wheel	  97 Oct 21 18:00 .gdbinit
-rw-------  1 root  wheel   20648 Dec  5 15:41 .history
-rw-r--r--  1 root  wheel	  80 Oct 21 18:00 .k5login
-rw-r--r--  1 root  wheel	  82 Oct 21 18:00 .login
-rw-r--r--  1 root  wheel	 559 Oct 21 18:00 .profile
-rw-r--r--  1 root  wheel	1128 Oct 21 18:00 .shrc
drwxr-xr-x  2 root  wheel	   2 May 12  2015 .ssh
-rw-------  1 root  wheel  430080 Sep 20  2016 secrets.tdb


You probably will not be able to do this via the GUI and it can be done on multiple files at once with the -R flag but use it carefully as you can bork the whole system and have to start over fresh if you do it in the wrong spot.

If it is being used on a samba share then you will have to deal with a bunch of other stuff if set to windows permissions.
 

theman1

Dabbler
Joined
Nov 8, 2014
Messages
30
I looked over those links and I have a slight grasp of permissions already from setting them in a transmission jail shell. Now when I go to set them in a jail it says operation not permitted. When I try to set it in the regular shell I'm not sure which folder I have to navigate to first or which directory needs their permissions set.
 
Joined
Apr 9, 2015
Messages
1,258
Depends on the applications, how your storage is setup among other things. Beyond that, unless I am looking at your setup, I can't help much. Basically you have to look at how things are setup in your system and go from there.
 

theman1

Dabbler
Joined
Nov 8, 2014
Messages
30
Is it possible to just start over with all my jails.. keep the storage and get access back to it?
 
Joined
Apr 9, 2015
Messages
1,258
You probably could but if you delete a jail anything stored in that jail will have issues. Storage should always be added in through the GUI. If you did things correctly on the initial setup it will be fine. If you stored stuff inside the jails you will need to back it up.
 
Status
Not open for further replies.
Top