473,378 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

File.copy as another user

Does anyone have an example of how to file.copy as another user? Do I
create a new thread as another user? How is that done?

Thanks!
Nov 21 '05 #1
10 3619
Steve,

What is "another user"

Cor
Nov 21 '05 #2
Another user meaning ...

I am logged in as domain\regularuser and I'd like to perform the copy
operation on the behalf of domain\administrator.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:eR*************@TK2MSFTNGP12.phx.gbl...
Steve,

What is "another user"

Cor

Nov 21 '05 #3
>
I am logged in as domain\regularuser and I'd like to perform the copy
operation on the behalf of domain\administrator.

Is that not strange?

Cor
Nov 21 '05 #4
No, it's not strange at all. I'm writing a program that is to be used by
lower priviledged users but I want it to copy some files to a location that
the user does not have access to. Do you have an answer for me?
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...

I am logged in as domain\regularuser and I'd like to perform the copy
operation on the behalf of domain\administrator.

Is that not strange?

Cor

Nov 21 '05 #5
It's a typically hacker program. Normally I don't think Microsoft let you do
that.

"Steve Bostedor" wrote:
No, it's not strange at all. I'm writing a program that is to be used by
lower priviledged users but I want it to copy some files to a location that
the user does not have access to. Do you have an answer for me?
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...

I am logged in as domain\regularuser and I'd like to perform the copy
operation on the behalf of domain\administrator.

Is that not strange?

Cor


Nov 21 '05 #6
They absolutely let you do it.

http://msdn.microsoft.com/library/de...ipalobject.asp

http://msdn.microsoft.com/library/de...et10282003.asp

"Rulin Hong" <Ru*******@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
It's a typically hacker program. Normally I don't think Microsoft let you do that.

"Steve Bostedor" wrote:
No, it's not strange at all. I'm writing a program that is to be used by lower priviledged users but I want it to copy some files to a location that the user does not have access to. Do you have an answer for me?
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
>
> I am logged in as domain\regularuser and I'd like to perform the copy > operation on the behalf of domain\administrator.
>
Is that not strange?

Cor


Nov 21 '05 #7
IT
I just did this thru a windows service not to long ago.
Once you install the service you can go into the logon properties of the
service and choose the option to log on as This Account. I don't know of any
other way.
"ABad" <an*******@discussions.microsoft.com> wrote in message
news:eR****************@TK2MSFTNGP11.phx.gbl...
They absolutely let you do it.

http://msdn.microsoft.com/library/de...ipalobject.asp

http://msdn.microsoft.com/library/de...et10282003.asp

"Rulin Hong" <Ru*******@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
It's a typically hacker program. Normally I don't think Microsoft let you

do
that.

"Steve Bostedor" wrote:
> No, it's not strange at all. I'm writing a program that is to be used by > lower priviledged users but I want it to copy some files to a location that > the user does not have access to. Do you have an answer for me?
>
>
> "Cor Ligthert" <no************@planet.nl> wrote in message
> news:OW**************@TK2MSFTNGP14.phx.gbl...
> > >
> > > I am logged in as domain\regularuser and I'd like to perform the copy > > > operation on the behalf of domain\administrator.
> > >
> > Is that not strange?
> >
> > Cor
> >
> >
>
>
>


Nov 21 '05 #8
A hacking program? lol Why do people even bother posting to a question
unless they have a solution? It's not a hacking program, it's a Network
Administration program. :) It appears that you just don't understand what
I'm asking, Rulin. Even if it was, you appear to not have any answers, so
it would do all of us great benefit if you just don't post anything. :) If
you think that I'm asking a stupid question, just chuckle to yourself and
move on.

Thank you for those of you that replied with intention of helping. I'm on
the way to figuring it out. If I come to a solution, I'll post it.
"Rulin Hong" <Ru*******@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
It's a typically hacker program. Normally I don't think Microsoft let you do that.

"Steve Bostedor" wrote:
No, it's not strange at all. I'm writing a program that is to be used by lower priviledged users but I want it to copy some files to a location that the user does not have access to. Do you have an answer for me?
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
>
> I am logged in as domain\regularuser and I'd like to perform the copy > operation on the behalf of domain\administrator.
>
Is that not strange?

Cor


Nov 21 '05 #9
Thank you! This is a great piece of info.

"ABad" <an*******@discussions.microsoft.com> wrote in message
news:eR****************@TK2MSFTNGP11.phx.gbl...
They absolutely let you do it.

http://msdn.microsoft.com/library/de...ipalobject.asp
http://msdn.microsoft.com/library/de...et10282003.asp
"Rulin Hong" <Ru*******@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
It's a typically hacker program. Normally I don't think Microsoft let you
do
that.

"Steve Bostedor" wrote:
No, it's not strange at all. I'm writing a program that is to be used

by lower priviledged users but I want it to copy some files to a location that the user does not have access to. Do you have an answer for me?
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
> >
> > I am logged in as domain\regularuser and I'd like to perform the copy > > operation on the behalf of domain\administrator.
> >
> Is that not strange?
>
> Cor
>
>


Nov 21 '05 #10
Steve,
I don't remember if your specific question was addressed, however Keith
Brown's book "The .NET Developer's Guide to Windows Security" from Addison
Wesley contains a plethora of information on security under Win32 &
specifically .NET. Including impersonating & elevating authorities...

You can access the book on-line at:
http://www.pluralsight.com/keith/book/html/book.html

What I thought would be nice is an "Adopt owner authority" such as available
on an AS/400, the "run a program as another user" setting is close...

Hope this helps
Jay

"Steve Bostedor" <ju**@tshore.com> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
A hacking program? lol Why do people even bother posting to a question
unless they have a solution? It's not a hacking program, it's a Network
Administration program. :) It appears that you just don't understand
what
I'm asking, Rulin. Even if it was, you appear to not have any answers, so
it would do all of us great benefit if you just don't post anything. :)
If
you think that I'm asking a stupid question, just chuckle to yourself and
move on.

Thank you for those of you that replied with intention of helping. I'm on
the way to figuring it out. If I come to a solution, I'll post it.

<<snip>>
Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: matt dittman | last post by:
I have created a windows service that reads emails from a drop directory and moves them to the appropriate mail folder every 15 seconds. I can move, rename and delete the files as needed, up...
2
by: Stephen Witter | last post by:
I had previously posted this on the security ng, but haven't had a hit so I was wondering if someone here would be willing to take a stab. I am trying to copy a file to a network drive. I can do...
3
by: Paul | last post by:
I need a way of creating a custom file which can be downloaded by a user. The file needs to be customized pre user (ie serial number built in). Creating the file is no problem. The problem is how...
8
by: Philip Wagenaar | last post by:
I need to send printjobs to a printqueue under diffrent usernames. The printsoftware on the queue is not very 'secure' so I can create a user on 1 system and send a printjob under it's name to the...
68
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
2
by: Miro | last post by:
I will ask the question first then fumble thru trying to explain myself so i dont waste too much of your time. Question / Statement - Every mdb table needs a PrimaryKey ( or maybe an index - i...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
3
by: tshad | last post by:
I have a function that downloads a file to the users computer and it works fine. The problem is that I then want the program to rename the file (file.move) to the same name plus todays date. ...
5
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.