Question Locked

Problems accessing the administrative shared folders

0 helpful
51 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi!
I'm trying to gain access to the administrative shared folder on my laptop, from my stationary.
They both have XP Pro installed, and the internal network between them works fine.
I have been looking at the Administrative shared folders for experimentation, but had the following problems:

When I tried accessing the C$ shared, I was prompted for a password, but was automatically given the username "Guest". As the guest user is deactivated on my laptop, that user was pretty useless.

1. Is there a way I can connect from XP to XP, without getting the guest user? Preferably without changing any settings on my laptop.

I tried booting my stationary from a live Linux USB, and the network manager there showed the C$ folder. When trying to access it, I was prompted for both username and password, and I gave the username and password for the Admin user on the laptop. This didn?t work, I was just prompted for the password again. (I checked for spelling and caps)

2. I had access to the other (normal) shared folders, but not the C$ one, so how come it didn?t work?

In advance, thank you for your help, and your time.
- Steffen

51 replies

by ic-it

Simply add the same user name and password that is on your desktop to the notebook.
You don't have to actual use that account on the notebook. This allows you credentials to access the admin share (insure that the account is part of the admin group).

by the_parasite

Is there a not-so-easy way?
As I'm mostly doing this for experimentation, and to learn, so simply adding an extra user isn't exactly what I am looking for...
thanks for the tip though, is usefull to know the easy way too :)

by rob miners

you are encouraged to create a password for the main Administrator account for security. You can see if you can connect using those credentials.
I have the same Administrative accounts on XP Pro and Windows 7. I just went to a command prompt and typed in net use X: \\w780\c$ and was connected. You will have to authenticate before you will be able to connect.

C:\Documents and Settings\Rob>net use /?
The syntax of this command is:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

by the_parasite

Thanks, this was what I was looking for... unfortunatly it doesn't seem to work.
I write "net use x: \\sd\c$" and then I'm prompted if I want to login as sd\Guest (press enter) or write a new username. I write the admin username and password for my laptop, wait a few seconds, and then I recieve the message "Systemerror 5"...
If I uderstand it correct, the error 5 meens that I'm not admin, but I'm using the right admin name and pass, and I have admin rights on the desktop...
Do I have a default setting on my laptop somewhere, that denies admin access, or could it be something else?
Thanks for your post though, it was quite helpfull :)

by thumbsup2

Are you using 'admin' or are you using 'administrator' or are you trying to log in with your own username?

by ic-it

told basically the same thing. If the user name administrator has the same password as the user name administrator on the other system (or as above another account) then you can access the admin share.
You don't even have to use the other account to logon on, not even once. You have simply created a set of authorized credentials.
The only other way is to use an exploit.
After all the OS should at least have a semblance of security. ;-)

by the_parasite

I'm not sure I made this clear, but my network is P2P, not server based.
Also, thank you all for your time, even though I have yet to reach my goal of actually getting access to the admin shared folders, I feel like I have learned something :)
Btw. Any ideas why it didn?t work, when trying to connect from linux? (Or is that probably the same reason as why it doesn?t work from windows?)
- Steffen

by the_parasite

I?m using my laptop username. (The laptop has my main user "Steffen" with admin rights, and a guest user, that is deactivated.)
There shouldn?t be any more users then that, unless windows have a default admin user, that is hidden from the user management screen, in the control panel :) (I really hope not)

by the_parasite

I first tried making a new account on my desktop, with the same admin rights, username and password as my admin user on my laptop.
I logged onto that user on my desktop, and tried to connect to my laptop with NET USE, and after being prompted for the username and password, I got the error 5 again...
I then tried making a new admin user on both computers with the same username and password, rebooted, and logged into the new users on both systems.
I then tried NET USE again, giving the new test admin username and password, when prompted.
Still got the error 5 message...
Not sure I want to start using exploits on a working system (that I use a lot) :)
And the reason I?m doing all this, is actually to see HOW secure that "semblance of security" is :)

by the_parasite

I checked in the Lan settings, and it is enabled... Also, it would surprise me otherwise, as I have no problems accessing anything else that is shared, from or to either system, it is only the admin shared that I cannot access.

by thumbsup2

Here is the MS article on How to create and delete hidden or administrative shares on client computers.

http://support.microsoft.com/kb/314984

It describes how to create a hidden/administrative share, so perhaps you can look at the one you've already got and check to see if the "Administrators have full control; other users have no access" checkbox is checked.

If it is, you can only access that share using the username of "Administrator" which is the default username assigned to THE administrator account. You can't access it with a username which only has admin privileges.

by the_parasite

Thanks for the article!
I looked around a bit, and got this:

"Control Panel => Administrative tools => Computer Management => Local Users and Groups" show the users:
Administrator, Guest, Helpassistant(deactivated), Steffen, and Support(deactivated).

"Control Panel => User Accounts" Only show these users: Steffen and Guest (not active)

I tried making a new account in the "User accounts" panel, named "Administrator", but got the "Name already taken" message... So what I'm looking at is a "hidden" admin user, that doesn't show in the accounts panel... (I vaguely remember something about a prompt about the admin user when installing Windows, but always figured the normal user with admin rights would be it... guess not!)

I tried right-clicking on the C$ folder in the "Control Panel => Administrative tools => Computer Management => Shares" Folder, but only got the options "Update" and "help"... my guess is that this is because I'm not logged in as the "Administrator" user. (There where no options for stopping sharing, or making new shares, for any folders, not even the "normal" folders I have shared)

So, if I understand this right, I can only gain access to the shared C$ folder, if I log on as the Administrator.
As there already is a default Administrator account, I cannot create one to test with, and as it doesn't show in the "normal" user accounts panel, I cannot log on to it.
I tried to connect from my desktop to my laptop with Net Use, and using Administrator as the username, with a couple of different passwords, (some default ones, and what I could think of if I had changed it) but just got an error 1326 "Unknown user or wrong password"...
I could reset the password in the Administrator tools, but I have no idea if this would change anything, so at the moment, I'd rather not...
So, I'm still not able to access the shared C$, but on the up side, I've learned a lot about windows accounts and shared folders management :) (and default settings/users)
Sorry for the wall of tekst :)
- Steffen

by thumbsup2

If you're using the Welcome screen at login, you won't see the default Administrator user account. If this is WinXP Home, you must boot to Safe Mode to see access the Administrator account. If this is WinXP Pro, there's a trick to get to it in normal mode.

To log in at the Welcome screen on WinXP Pro, press CTRL+ALT+DEL two times. At the resulting login screen, type the name "Administrator" (without the quotes). If you can not remember the password, you might not have set one so try leaving it blank and just press Enter. If you did set a password, you will have to remember it to continue.

by 93961

Now assuming this is a home network and is in a workgroup, when you connect and when you get the password prompt, you should input the following in the UserName Field "Workgroup Name/User Name" and password in the Password Field, where "Workgroup Name" can be obtained by seeing the Computer Name Tab in the System Properties in the Control Panel of the Laptop & the "User Name" should be any user having admin control on the laptop. This will surely connect. I have connected many non-domain computers temporarily to our Domain computers this way in our organizayion. This is because the computers' authentication procedure should like to know where to look and authenticate your login credentials you supplied while trying to connect. This is not the problem in a Domain environment where you can give rights to users you want to connect to your shares.
Please let us know the result after trying the same.

by the_parasite

Thank you for your post, though I'm not sure I understand your answer correctly, but if I do, I think you might have misunderstood me. My problem is not to connect normally from the one computer to the other, but to access the hidden administrative shared C$ folder on the one computer, from the other.
If I the address \\SD (the name of my laptop) on my desktop, it opens the shared folders on my laptop, without prompting for user or password.
If I write \\SD\C$ I'm prompted for a password, but the username is grayed out and show SD\Guest. I have used the command-line NET USE X: \\SD\C$ for trying the other usernames.
Btw. Just to clarify, my network is just my desktop, my laptop and a switch. (closed network)

by 93961

My reply was for that only (C$ accessing) but I donot understand how the user name field is having any data and is greyed out. May be you have saved the username and password previously while accessing a share, which should never be done for security reasons. And SD is the Computer Name of your laptop. Check what is the Workgroup Name as in the procedure I mentioned before.

by the_parasite

Got XP Pro... looks like I set a password (would also surprise me otherwise) :)
I'll update this post when I remember what it is :)
Thanks for all the help so far, I believe I've learned a lot :)
- Steffen

Edit: Got it!
Luckily I'm pretty good at remembering my passwords.

by the_parasite

I had a look at the "Control Panel => User Accounts" screen as Administrator, and now the admin user shows too... doesn?t seem to be any changes when I right-click on the C$ folder in "Control Panel => Administrative tools => Computer Management => Shares" though. Still only have the "help" and "Update" options...

I have changed the admin password to being the same on both machines.
I then tried using net use to get access to the C$ on the laptop, from the desktop, while logged in as my normal user. I used "Administrator" as the name, with the new password... still got error 5.
I then tried the same, now logged in as Administrator on both machines, and I tried accessing C$ on the laptop from the desktop, and on the desktop from the laptop... got an error 5 in both cases :(
And from what I understand, from the other posts, that should have worked, right?

by 93961

Please try the procedure I mentioned in my previous postings.

by the_parasite

My apologies, I probably misunderstood you then.
When I try to connect "normally" to the C$ folder, the username is still grayed out and reads "SD\Guest"... if this is a default setting, me having saved something at some point or what, I have no idea, but it is the same whether I'm logged in as my normal user or the Administrator.
(How can this be un-saved / un-grayed?)
If I try the command prompt, and write "net use x: \\sd\C$" and provide the username: "workgroup\Administrator" I just get the error 5. If I write "workgroup/Administrator" as username, I get a "wrong syntax on username, please write a new username" message.
(And yes, I use the default workgroup name) :)

by rob miners

Check to see that simple file sharing is disabled. Explorer Tools Folder Options View and scroll to the bottom.

Click Start, Run, type in regedt32.exe and press Enter.

Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\lsa

In the right hand window you'll see restrictanonymous. Check that the Data Value is 0. If it is another Value then double click it and change the value to a 0.

by the_parasite

found it.
The value is 0 on both machines...
What does it do?

by rob miners

that if it was set to a Value of 1 it may interfere with your connection. If it is set to 0 it is not the problem.

Try connecting using the IP Address

net use X: \\IPaddress\C$ /user:administrator password

by tridom

Been a while since I've done this....but I seem to remember Telnet having to be enabled to use Net Use.

Is my memory failing me?

by the_parasite

I am able to start telnet on both machines, so I'm guessing it's enabled?
but don't know.

by the_parasite

just tried it, still get an error 5...
can it be a setting on the laptop that only allows guest to log on?

by thumbsup2

Show us exactly (hide the un/pw) what you're typing with spaces and forward/backward slashes and all......... It has to be something simple.

by the_parasite

I open the command prompt (Run => cmd => Enter) and write "Net use X: \\SD\C$"
As username I give "Administrator" (to access as the default administrator user)
And the correct password. I have also tried writing
"net use X: \\SD\C$ /user:Administrator Pass" where Pass is the correct password.
I have also tried with the IP address instead of SD, same result.
("net use X: \\10.4.28.1\C$ /user:Administrator Pass")
but still just get the error 5 :(

by rob miners

3rd party Firewall? Temporarily disable it if you are. Also

System error 5 - Access is denied

This is a permission issue. If the net view command fails with a "System error 5 has occurred. Access is denied." message, 1) make sure you are logged on using an account that has permission to view the shares on the remote computer.
2) Need to cache credential: logon the same username and password on both computers or use net net use \\computername /user:username command.
3) Make sure the Netlogon service is running.

http://www.chicagotech.net/systemerrors.htm#System error 5 - Access is denied

by bizintelligence

I thought I should share my experience as well..:-)

Whenever I want to connect to a administrative share I do follow things:
1. \\computer-name\c$
2. Type username as \\computername\administrator and then password

Thats it...and it connects

To check for saved credentials in Windows XP run this

rundll32.exe keymgr.dll, KRShowKeyMgr

Above command will show saved credentials for particular resource. You can also create one for a resource.

I am assuming following service is enabled:
File and Print Sharing

Cheers !

by the_parasite

No 3. party firewalls... have also tried with windows firewall disabled, no difference.

1) make sure you are logged on using an account that has permission to view the shares on the remote computer.
- As I'm trying to access as the XP created Administrator, I'm pretty sure it should ahve access.
2) Need to cache credential: logon the same username and password on both computers or use net net use \\computername /user:username command.
- Tried logging on as the administrator on both machines (they have the same password), so check...
3) Make sure the Netlogon service is running.
- If I can access the other "normal" shared files, does that meen it's running? or how do I test this?

by rob miners

Guest Account and see if that will clear it.

You can use the User Accounts tool in Control Panel to turn off the Guest account. When you turn off the Guest account, you remove the Guest account from the Fast User Switching welcome screen. However, the Guest account is not disabled.

Edit: to add extra info and its not really disabled just not useable.

by the_parasite

The guest user that shows in the User Accounts screen is already deactivated on both machines. I have tried disabling it in the Users section in the Computer Administration tool, but that only seamed to give more errors, so enabled it again. (It's still deactivated in the User accounts screen though)

by 93961

I also meant to say the same thing as "singhsons" as in step 2, either it should be "\\computer-name\administrator" or "\\Workgroup-name\administrator" or "computer-name\administrator" or "Workgroup-name\administrator" in the User Name Field. Remember the Backward Slashes are IMPORTANT here and not Forward slashes. You can get the WorkGroup Name from the Computer Name Tab of System Properties, where you will be get both the ComputerName and WorkGroupName. Please try this and let us know.

by the_parasite

Can't change the username, it's still grayed out as SD\Guest. (thats why I'm using net use)
and tried running the key manager, as written above, but the list is empty, so apperently I don't have any credentials saved.
I tried saving the admin credentials, but didn't change anything.
also yes, filesharing is of course activated :)

by the_parasite

I'm a bit cautious with resetting permissions in general, so I would like to know what this will actually do? (Especially since I haven't set any specific file nor registry permissions on any of the machines)

by thumbsup2

net use X: \\SD\C$ password /USER:Administrator

The syntax of this command is:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}

SYNTAX
The following conventions are used to indicate command syntax:

- Capital letters represent words that must be typed as shown. Lower-
case letters represent names of items that may vary, such as filenames.

- The [ and ] characters surround optional items that can be supplied
with the command.

- The { and } characters surround lists of items. You must supply one
of the items with the command.

- The | character separates items in a list. Only one of the items can
be supplied with the command.

For example, in the following syntax, you must type NET COMMAND and
either SWITCH1 or SWITCH2. Supplying a name is optional.
NET COMMAND [name] {SWITCH1 | SWITCH2}

- The [...] characters mean you can repeat the previous item.
Separate items with spaces.

- The [,...] characters mean you can repeat the previous item, but
you must separate items with commas or semicolons, not spaces.

- When typed at the command prompt, service names of two words or
more must be enclosed in quotation marks. For example,
NET START "COMPUTER BROWSER" starts the computer browser service.

by rob miners

will set them back to the defaults.

Yep deactivated is what I mean't.

I was able to connect by changing the administrators password to password on amdu3. I was also running it from a Command prompt.

C:\>net use X: \\amdu3\c$ /user:administrator password
The command completed successfully.

by mamies

try login as a super user on the linux cd. Might help :)

by the_parasite

have tried both
net use X: \\SD\C$ password /USER:Administrator
and
net use X: \\10.4.28.1\C$ password /USER:Administrator
still error 5

by 93961

Net use Connects a computer to or disconnects a computer from a shared resource, or displays information about computer connections. The command also controls persistent net connections. Used without parameters, net use retrieves a list of network connections.

Syntax
net use [{DeviceName | *}] [\\ComputerName\ShareName[\volume]] [{Password | *}]] [/user:[DomainName\]UserName] [/user:[DottedDomainName\]UserName] [/user: [UserName@DottedDomainName] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]

net use [DeviceName [/home[{Password | *}] [/delete:{yes | no}]]

net use [/persistent:{yes | no}]

Parameters
DeviceName
Assigns a name to connect to the resource or specifies the device to be disconnected. There are two kinds of device names: disk drives (that is, D: through Z:) and printers (that is, LPT1: through LPT3:). Type an asterisk (*) instead of a specific device name to assign the next available device name.
\\ComputerName\ShareName
Specifies the name of the server and the shared resource. If ComputerName contains spaces, use quotation marks around the entire computer name from the double backslash (\\) to the end of the computer name (for example, "\\Computer Name\Share Name"). The computer name can be from 1 to 15 characters long.
\volume
Specifies a NetWare volume on the server. You must have Client Service for NetWare installed and running to connect to NetWare servers.
Password
Specifies the password needed to access the shared resource. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.
/user
Specifies a different user name with which the connection is made.
DomainName
Specifies another domain. If you omit DomainName, net use uses the current logged on domain.
UserName
Specifies the user name with which to log on.
DottedDomainName
Specifies the fully-qualified domain name for the domain where the user account exists.
/savecred
Stores the provided credentials for reuse.
/smartcard
Specifies the network connection is to use the credentials on a smart card. If multiple smart cards are available, you are asked to specify the credential.
/delete
Cancels the specified network connection. If you specify the connection with an asterisk (*), all network connections are canceled.
/persistent:{yes | no}
Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /delete to remove persistent connections.
/home
Connects a user to the home directory.
net help command
Displays help for the specified net command.
Remarks
Connecting and disconnecting from a network resource
Use net use to connect to and disconnect from a network resource, and to view your current connections to network resources. You cannot disconnect from a shared directory if you use it as your current drive or an active process is using it.

Viewing connection information
To view information about a connection, you can do either of the following:

Type net use DeviceName to get information about a specific connection.
Type net use to get a list of all the computer's connections.
Using deviceless connections
Deviceless connections are not persistent.

Connecting to NetWare servers
After you install and run Client Service for NetWare, you can connect to a NetWare server on a Novell network. Use the same syntax that you use to connect to a Windows Networking server, except you must include the volume you to which you want to connect.

Using quotation marks
If the ServerName that you supply contains spaces, use quotation marks around the text (that is, "Server Name"). If you omit quotation marks, an error message appears.

Examples
To assign the disk-drive device name E: to the Letters shared directory on the \\Financial server, type:

net use e: \\financial\letters

To assign (map) the disk-drive device name M: to the directory Mike within the Letters volume on the \\Financial NetWare server, type:

net use m: \\financial\letters\mike

To connect the user identifier Dan as if the connection were made from the Accounts domain, type:

net use d:\\server\share /user:Accounts\Dan

To disconnect from the \\Financial\Public directory, type:

net use f: \\financial\public /delete

To connect to the resource memos shared on the \\Financial 2 server, type:

net use k: "\\financial 2" \memos

To restore the current connections at each logon, regardless of future changes, type:

net use /persistent:yes
----------------------------
OR
----------------------------
Search for "net use" in your machine operating systems "Help and Support Center"
----------------------------
OR
----------------------------
For a shorter version type "net use ?" (without inverted commas naturally) in the command prompt or cmd.

This and all other posts shows that you are not reading, following, understanding and listening to all the post properly. I meant to say what this Syntax shows. Your computer will always help you if you do not understand nay command. Hence Windows is User Friendly even though it may be Buggy. I do not know about other OSes as I have not used and supported them.

by the_parasite

From reading your posts, it was quite obvious that I was writing the right commands, but that for some reason it didn't work, when it should have.
This made me realize that there probably where a default/security setting somewhere, that denied me access to the computer.
After looking around for a bit in the administration settings, I found the setting:
"Control Panel => Administration => local security => Local => Security Setup =>
Network access: sharing and security model for local account".
This setting was set to guest only access, instead of normal user access, and when I changed it to normal instead of guest, the aforementioned commands works as intended :)
(I checked a bunch of machines, and apparently that setting is a default setting.)

I would like to thank you all for you time, and your great help, as I have learned a lot about shares, users and security settings alike :)
- Steffen

by rob miners

and thanks for providing the solution. Good luck with your future endeavors. :D

This discussion is closed to new replies.