Koozali.org: home of the SME Server

Samba share permissions

Tom

Samba share permissions
« on: October 30, 2003, 04:00:54 AM »
I have a SME 5.6 setup and working fine. I am setting this up in my classroom and I need to be able to make the user folders available to the user and myself (either as admin or my login) so the students can put work in their folder and I can go in and correct it.

Does anyone know how I can accomplish this?

thanks
Tom

Reinhold

Re: Samba share permissions
« Reply #1 on: October 30, 2003, 01:55:50 PM »
Not sure what you are trying to say Tom...

"root" has access to everything (useful or not .-)
e-smith has home-directories located a tad different ...  maybe this is what's confusing you?

Just start putty and log in as root then (best use "mc") then go into
/home/e-smith/files/users
and you'll find them all

happy teaching

Tom

Re: Samba share permissions
« Reply #2 on: October 30, 2003, 06:03:01 PM »
Reinhold wrote:
>
> Not sure what you are trying to say Tom...
>
> "root" has access to everything (useful or not .-)
> e-smith has home-directories located a tad different ...
> maybe this is what's confusing you?
>
> Just start putty and log in as root then (best use "mc") then
> go into
> /home/e-smith/files/users
> and you'll find them all
>
> happy teaching

Maybe my explanation was tad confusing. What I need to be able to do is:

Student samba folder on SME
     Student has full access to their folder through Windows networking
     Teacher has full access to each students folder through Windows network

I need students to save their work in the samba share, but also allow the teacher r/w access to correct their work shared in there.

I hope my explanation is a little clearer.

I do use MC, and I know I can get to the files that way, but I am setting this up for another teacher and want as few headaches for myself showing them how to do this..;)

thanks
tom

Byte

Re: Samba share permissions
« Reply #3 on: October 30, 2003, 07:42:09 PM »
You could use IBAYS and GROUPS but this could limit somethings as I remember see that you can only have 28 groups (correct me if im wrong) so have a play around with that see how you get on

Michael Smith

Re: Samba share permissions
« Reply #4 on: November 02, 2003, 07:14:33 PM »
Assuming the teacher's machine is running Windows XP or 2000, you might try using "net use" in a batchfile to access each share with username & password; maybe something like this:

#goget.bat ... asks for username
@echo off
# Remove previous S: ("Student") drive letter
net use s: /delete
setlocal
set /p NAME=Student's username:
set /p PASS=Student's password:
net use s: \{smeserver IP}\%NAME% /user:%NAME% %PASS%
endlocal
# end of batch file

I haven't tested this but it or some variant using a third-party utility to make it all fancy and GUI should work.  If you didn't want to make the teacher enter username & password you could use a bunch of IF statements to choose the correct "net use" command with username & password already entered.

NOTE that you must use the IP address of the SME server; if you use the server NAME you will get an error about conflicting credentials.

Hope this helps ... if you actually use this, let us know exactly what worked!

grub

Re: Samba share permissions
« Reply #5 on: November 04, 2003, 04:48:25 AM »
simple:

The owner is the student and the group is the teacher
Tom is the only member of the group teacher... but every student will stay the owner of the files.
owner and group will have r/w/x access

Michael Smith

Re: Samba share permissions
« Reply #6 on: November 04, 2003, 08:53:17 AM »
That's much better than my way!

Tom

Re: Samba share permissions
« Reply #7 on: November 04, 2003, 02:32:55 PM »
Makes perfect sense, now the million dollar question, how do I set this up on e-smith 5.6??

tom

Michiel

Re: Samba share permissions
« Reply #8 on: November 04, 2003, 10:15:29 PM »
> That's much better than my way!

Provided that there are not more than 28 teachers. If there are more, your solution might still be better.