Jump to content

[SAMBA] Students folders


Recommended Posts

Posted

Hi!

 

Maybe someone can help me with my problem.

 

I have user folders in:

 

/home/user1a

/home/user2a

/home/user3a

/home/user4a

........

/home/user1b

/home/user2b

/home/user1b

/home/user2b

 

and etc.

 

I want to create samba share that show me only selected folders. I.e.

User "TeacherA" see only /home/user*a folders and "TeacherB" see only /home/user*b folders

 

Thanks for help!

  • 3 weeks later...
Posted

Wouldn't the [homes] section do that for you ? Or did you need a second share ?

 

 

If I needed a second one, I'd do it with an enumerated share, where the name of the folder matches the user name

 

Note that the unsername must match: teachera then needs /something/teachera, /home/teachera, /sambashare/teachera, anything like that.

 

You

 

[userShare]

comment = %U Share

path = /home/$U

read only = No

valid users = %U

 

 

 

Good luck

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...