Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using net use to map shares on a windows machine to Red Hat Linux using Likewise CIFS. I was wondering if there is a way to check which user a particular share was mapped as. I desire this information because Guest Mode is enabled which will mount the share as guest if invalid credentials are received. Therefore I am curios to know if the share got mounted as guest or as a different local user. If possible I would like to do this from the command line so it can be automated in a script.

share|improve this question
up vote 0 down vote accepted

On the sharing box (in this case, the Windows box), you can find some information from 'net file' and 'net session' though I find the information to be incomplete.

Though this does not answer your question directly, you can use 'smbstatus' to see the status of connections to SMB shares on a *nix/Samba server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.