Re: [Samba] newbie question/authenticate

2008-12-02 Thread Condic
Good news & bad news:  With the help of "Richard Nelson", I was able 
to generate a batch file, that will prompt for an username and 
password in Windows XP:


The following batch file, disconnects J: (incase a user forgot to 
logoff), then requests the username.
The "*" after the password will prompt for the password.  I was 
unable to get "net" to prompt for a password correctly.


edit netuser.bat
@echo off
set/p Username=Enter your Username:
rem disconnects "J:" incase a user forgot to logoff
net use J: /delete /y
rem the net use with a "*" password will prompt for a password
net use J: \\liuxserver\files /USER:%Username% * /persistent:no
j:
dir
rem the last pause will allow us to see any error messages incase of errors
Pause

Can someone try my batch file on Vista?

Now the bad news:  My batch file does not work under 
Windows98se.  The net use command does not allow a username.  The 
whole idea is to not have to logon to a windows98 machine.


Can someone come up with a direction or a simple solution that would 
work on Windows98???


Here is [files] section that I added to smb.conf.  Don't forget to 
add username/passwd to smbpasswd.

[files]
   comment = Work area files
   path = /students/%U
   read only = No

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] newbie question/authenticate

2008-11-30 Thread Condic
I have a small network running in a school.  My network is 
working.  samba is running on openSuSE 11.0 and Windows XP and 
Windows98se can access the non protect samba shares/sections.


I have one problem that I been struggling with.  I have read the 
howto's, and searched the lists, but can not find the solution.


I would like to implement [homes] or [usershares] for student 
directories and file storage:


When accessing the /students or /homes directory, students would be 
prompted for a username and password.  The student would not need to 
be login to the Windows OS.  That is, I just want a prompt for both 
username and password when the share is accessed.  This should work 
from either Windows 98se or Windows XP.


Linux:  Do students need Linux/UNIX accounts? [yes]
Linux:  what do I need to set the security = share/user/server/domain/ADS ?
Linux:  Do I need to add each student to the smbpasswd directory? [yes]
Linux:  What are the minimum parameters that I need to implement [homes] ?
Linux:  What are the parameters that I need to implement [usershares] ?

Windows question:  I have setup the Linux samba shares.  When I 
access the shares, the windows box that pops up does not allow me to 
change the username, only the password.  The user name is 
/guest/login-name.  I would like windows to prompt me for the "user 
name" as well as the "password".  On XP, if the user is login'ed to 
the machine, then adding the password gets the right share.  If I 
knew the name of the windows service, I would have a chance at 
searching for the solution.


# samba parameters from testparm

[global]
workgroup = TAKE5
interfaces = 192.168.1.203/255.255.255.0
bind interfaces only = Yes
security = SHARE
map to guest = Bad User
log level = 2
smb ports = 139
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
printcap name = /etc/printcap
mangling method = hash
os level = 255
preferred master = Yes
case sensitive = No
mangled names = No

[files]
comment = Work area files
path = /students/%U
read only = No

[teacher]
comment = Master work area files
path = /students
valid users = srannie
read only = No

I have setup Linux accounts, and samba passwords for each 
student.  If the student is login'ed to Windows XP, and accesses the 
/files directory, there is no problem, but if the student is not 
login, I can't seem to get this to work.  What can I do to make this 
work?  Thanks. 
--

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba