Jails user permission

Status
Not open for further replies.

mskenderian

Contributor
Joined
May 24, 2013
Messages
100
Can i add a user from jails, to a group for the main system?

add transmission user from jails into the system group called torrent?
 

Caesar

Contributor
Joined
Feb 22, 2013
Messages
114
I have a media:media user/group inside the jail and when I look a those files outside the jail they show as 4001:4001. Also I can chown 4001:4001 a file outside the jail and it will be media:media inside the jail so I think it can be done. I would create the user and group inside the jail, create a file and log out of the jail and check the owner of that file. use that owner to add to your torrent group.

BTW I have never tried this so I'm not sure if it will work or not
 

SkyMonkey

Contributor
Joined
Mar 13, 2013
Messages
102
I am going to try this tonight; I'd like to add the transmission user inside the jail to the media_access group outside the jail so my permissions on my CIFS shared media dataset (which is mounted as a mount point inside the jail for transmission to downloads to) are consistent. This seems like the best way to do so potentially.
 

SkyMonkey

Contributor
Joined
Mar 13, 2013
Messages
102
So, it didn't work (or I did it wrong). My transmission user in the jail has ID 40001 (per the /etc/group file inside the jail). I added user 40001 to the my media_access group OUTSIDE the jail (in /etc/group in the FreeNAS install), and for good measure (after this on it's own did not work) added the transmission group in the group file as well with the same UID/GID.

I still get permission deined (file exists) issues with transmission in this configuration. Restarting the transmission service and the jail make a difference. Restarting the whole FreeNAS server removed my changes from the FreeNAS /etc/group file (I guess this is generated on boot).

So, no worky.

Did I do something wrong or is this just a no-go for some other reason?

Edit: I repeated the process, except using the FreeNAS webgui to add a user (transmission) with the same UID/GID as the jail version (4o001). I then added this user to my media_access group. No go. (Though the user/group did persist through reboot when added via this method...expected behavior).
 

underpickled

Contributor
Joined
Oct 1, 2013
Messages
167
So, it didn't work (or I did it wrong). My transmission user in the jail has ID 40001 (per the /etc/group file inside the jail). I added user 40001 to the my media_access group OUTSIDE the jail (in /etc/group in the FreeNAS install), and for good measure (after this on it's own did not work) added the transmission group in the group file as well with the same UID/GID.

I still get permission deined (file exists) issues with transmission in this configuration. Restarting the transmission service and the jail make a difference. Restarting the whole FreeNAS server removed my changes from the FreeNAS /etc/group file (I guess this is generated on boot).

So, no worky.

Did I do something wrong or is this just a no-go for some other reason?

Edit: I repeated the process, except using the FreeNAS webgui to add a user (transmission) with the same UID/GID as the jail version (4o001). I then added this user to my media_access group. No go. (Though the user/group did persist through reboot when added via this method...expected behavior).
Did you ever figure out how to add your in-jail transmission user to another group to give the appropriate permissions?
 

thaFaxGuy

Dabbler
Joined
Jan 8, 2013
Messages
20
I have a similar issue using ownCloud.
I have tried to mirror the users on the NAS by creating the same user in the jail.
But I still have permission issues.

Here is what I did ( maybe someone can spot the error)
on a terminal via ssh as root to the freeNas, I ran the following commands:
> jexec myJailName /bin/tcsh (to access my jail)
> root@myJailName: addusers
- Created each user with the same UID, name, passwd & group.
- restarted my jail.
 

SkyMonkey

Contributor
Joined
Mar 13, 2013
Messages
102
I never got mine to work the way I wanted. I just SSH in and chown/chmod the files/directories that Transmission creates so my other users can see/move them. I could perhaps write a cronjob script to do so if I desired.

I'm still on last release of 8.x, perhaps things are different in the 9.x releases.
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
so no way to make it works adding in-jail transmission user to another group to give the appropriate permissions?
 

whatnissan

Dabbler
Joined
Feb 18, 2015
Messages
49
I need help with this also. So i finally got transmission working able to download to a directory with out saying permissions error. What I did is that I noticed that the the folders tm could write to all had owner 921 and group 921 Transmission and transmission . SO what I did was create a group with the id 921 and name transmission added it to my user name and whatnot. Now i can download to the folder for me its a shared mnt point /mnt/downloads but couch potato cant move (and neither can I) any files from that directory to my movies directory. It wont allow me to rename files or delete them .. Any new files downloaded are owned by transmission basicly 921:921. I either need to change the user that transmission runs with or I need to find a way to have the files already chown to user dave or something so i can access them. been googling for hours and have found no solution. HELP!!
 
Status
Not open for further replies.
Top