Solved

Access SAMBA share without logoff/logon

Posted on 2008-10-27
1
459 Views
Last Modified: 2013-12-02
Hello,

I have a user account that is logged on to a Windows 2003 server 24 hours a day to process jobs.  The data for these jobs is located on a SAMBA share.  The folders on the SAMBA share are created by a windows service that also grants permissions to the newly created folders.  The problem is that since the user is logged in 24 hours a day, they can not access the new folders without logging off and back on to refresh their credentials.  I was wondering a few things:

1.  Is there a way to programatially refresh the logged in user's credentials without logging off/on?
2.  Is there a way to programatically login a user in a Windows 2003 Terminal server?
3.  I've tried using net use and supplying the password but that does not work.

Please help!
0
Comment
Question by:ingenito
1 Comment
 

Accepted Solution

by:
ingenito earned 0 total points
ID: 22868010
I found the solution which is pretty simple.  You can use the dos command, net use, to delete and recreate the share which automatically refreshes the security context,
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Samba is the de-facto standard program (or, more correctly: suite of programs) that UNIX and Linux systems use to share files with Microsoft Windows (and more recently, Mac OS-X) systems. Currently, there are 2 common versions of Samba available,…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now