Ernesto Zavala's picture

Hello

I apologize for this basic question but I am really new on this.

Please,  I need a step by step guide of how to share a folder using "Turnkey File Server" for an specific user (using login and password) and for a group.

 

Please I will be really grateful

Forum: 
Jeremy Davis's picture

Where have you got to setting up your TurnKey Fileserver?

Also, just to be sure that we're on the same page, I assume that you're referring to access via SMB (i.e. Windows/Samba file sharing)? Actually I just noticed that you've tagged "samba" and "shares", so I'm 99% sure I'm right. If not, please specify which protocol(s) you are planning to use.

Do you already have the users and groups on the server? Or did you need a hand with that too? (FWIW on our Fileserver appliance, we use legacy Samba config - which means that the Samba users are mapped to Linux users - although if you use the Samba tools to create your users, then the Linux users should be silently created for you in the background).

Regarding file structure and assuming SMB, do you have a planned structure? E.g. are you thinking a single share with different directories (i.e. all users can access the share, but individual folder access is protected with file permissions), or are you thinking separate shares? (E.g. one for each person and only they can access, and another with group access). Also you explicitly note that you require use of credentials to access the user files, what about the group access? Do you want that to require login too? Or would they be guest shares (i.e. username 'guest', no password)? Or do you want all 3 types? What about read/write access? Should these users/groups have write access as well, or just read only?

And one last question; are you looking for Webmin instructions, or CLI (command line interface - i.e. terminal)? I'm happy to do either, but I personally prefer CLI. IMO it's easier to explain, harder to miss details plus quicker and easier in general (I just have to post commands and you can copy paste them). Having said that, I get that many prefer a UI, so if you'd prefer for Webmin, then that's fine too.

FWIW, either way I'm not a Windows user so I don't recall how to do it OTTOMH and will need to do a bit of reading and probably a little trial and error to refresh my memory before writing something up for you.

Ernesto Zavala's picture

Hello Jeremy

I understand my requirement was to big. I really appreciate your help.

I will start reading the documentation you sent me and try to do my best.

Anyway, if I have a problem please let me contact you to ask for help.

Have a nice day. 

 

Ernesto

Jeremy Davis's picture

Just bumping this thread as I haven't heard back from you. If you still want a hand, please respond to my previous post above. Thanks.

Ernesto Zavala's picture

Hello Friend

Excuse me, I was on vacation. I will answer your questions:

Where have you got to setting up your TurnKey Fileserver?
On a physical pc.

Also, just to be sure that we're on the same page, I assume that you're referring to access via SMB (i.e. Windows/Samba file sharing)?
Yes,  I want my users with windows access a folder shared by department (I.e. sales can access just sales folder and not other, accounting access to their own folder shared and so on)

Actually I just noticed that you've tagged "samba" and "shares", so I'm 99% sure I'm right. If not, please specify which protocol(s) you are planning to use.
I am not sure about what protocol, I think the common on my LAN network TCP/IP v4

Do you already have the users and groups on the server?
No i do not know how it works

Or did you need a hand with that too? (FWIW on our Fileserver appliance, we use legacy Samba config - which means that the Samba users are mapped to Linux users - although if you use the Samba tools to create your users, then the Linux users should be silently created for you in the background).
I need a hand with it (shame on me)

Regarding file structure and assuming SMB, do you have a planned structure? E.g. are you thinking a single share with different directories (i.e. all users can access the share, but individual folder access is protected with file permissions), or are you thinking separate shares? (E.g. one for each person and only they can access, and another with group access).
Also you explicitly note that you require use of credentials to access the user files, what about the group access? Do you want that to require login too?
Or would they be guest shares (i.e. username 'guest', no password)?
Or do you want all 3 types?

I need 3 types and for be more specific I will details these :

1.- I need a read write permission with password access to one folder just for a person (I.e. user isabel).

2.- I need just a read permission with password access to a group of persons (all the people here)

3.- I need read an write permission to a group of persons using password (i.e. sales)

What about read/write access? Should these users/groups have write access as well, or just read only?

Some people and some group with read only and read and write access. all using password.

And one last question; are you looking for Webmin instructions, or CLI (command line interface - i.e. terminal)? I'm happy to do either, but I personally prefer CLI. IMO it's easier to explain, harder to miss details plus quicker and easier in general (I just have to post commands and you can copy paste them). Having said that, I get that many prefer a UI, so if you'd prefer for Webmin, then that's fine too.
Telling the true, I am interesting on learning both of them

FWIW, either way I'm not a Windows user so I don't recall how to do it OTTOMH and will need to do a bit of reading and probably a little trial and error to refresh my memory before writing something up for you.

I really appreciate the effort.

Really thanks I will be waiting for your response.

Jeremy Davis's picture

Thanks for your detailed response to my questions. I have made a bit of a start and to kill 2 birds with one stone, I'm working on the (as yet unreleased) v18.0 Fileserver appliance (which should be fundamentally the same as the current appliance, but based on the newer Debian release which includes newer versions of software).

I had hoped to be able to block out a bit of time for this this week, but I'm being pulled in different directions (too many jobs and not enough time...) and I think it's unlikely that I'll complete this this week. Fingers crossed I'm wrong, but I figured rather than you having to just sit and wait for me, perhaps it would be better to share the docs that I've been reading so if you have the time and patience, then perhaps you could have a play yourself? Better still, if you do if you could take some notes and share them? (Even if you don't get it complete).

If you do and have any success, please post back ASAP. If you hit any issues following and/or understanding the docs (I'll link to below) then please ask (it's almost certain that I'll have time for a few quick answers to questions than working through the whole process and documenting).

I suggest that you try via CLI initially, but Webmin is also worth a try if you don't have any joy that way. I'll give CLI docs first, then Webmin.

Sorry that it's not the step-by-step that I had intended, but hopefully that should get you going in the right direction. I'll circle back to this ASAP, please feel free to bump me if you haven't heard back by early next week.

Ernesto Zavala's picture

Hello Jeremy

Thanks for the documentation, these links will help for sure.

Anyway, I will do my best before ask for uoy help (if its possible).

 

Have a great day.

 

Ernesto

Ernesto Zavala's picture

Dear Jeremy

 

Please give me a hand with this:

 

I have created de folder:

"home/DOC_CUMPLIMIENTO_D"   (owner) fresponsable:ADM_CUMPLIMIENTO    (Mode) 0770

shared as:

Documentacion-LGI   /home/DOC_CUMPLIMIENTO_D      (Security) Read/write to all known users

But user "Fresponsable" can not access the folder as owner to upload files.

Any idea?

 

Jeremy Davis's picture

Sorry Ernesto - I haven't forgotten you.

It's just that I'm a bit overwhelmed currently. I'm trying to update the whole library of appliances and we've had a flood of bug reports from paying customers. Seeing as they pay the bills and keep the lights on, I need to prioritize them (plus everyone benefits when we fix bugs).

I have a Fileserver set up ready for testing and documenting this for you, but unfortunately for now, I'm unclear when I might get back to that. Hopefully later in the week, but no promises.

Add new comment