Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Logoff of network shares

Mar 11, 2004 1:05PM PST

I am useing Windows XP Profesional
that is connecting (a folder)on a samba server.
I have users go to
the share ,and enter their username
and password to access the folder,
but when another user whants to use
the the folder, I dont want that person to log
off and log back in to access the share
under thier username.
I need the users to be able to run a script
that will disconnect them from the
share and then the next user can
enter thier password.
-- Thanks

Discussion is locked

- Collapse -
Re:Logoff of network shares
Mar 11, 2004 7:47PM PST

I think this will have to be done on the SAMBA side, and so you'd probably have better luck asking this question in the Linux forum. Chances are much greater you'll find someone with some SAMBA expertise over there.

- Collapse -
Re:Logoff of network shares
Mar 11, 2004 8:06PM PST

The subject title is an oddity. Usually I hear that you disconnect from a share, not that you logoff. Your message body explains this a bit better.

In short, the command you want to put in the script is...

NET USE

You'll have to look up the syntax and fill it in, but it can be used to disconnect as well as connect to a share with an user name.

This is an ODDBALL way to run a ship, but it's your ship. Any oddities that occur because you did this are your problems.

Bob