Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

What is the default UID (user in) and GID (group id) that Samba service using? For an example, Apache2 runs as www-data, likewise what is the UID that Samba service using?

share|improve this question
up vote 0 down vote accepted

Using ps -eo uid,gid,args|grep myprocess helps you to find the UID and GID of a running process. For samba, replace myprocess by smbd and nmbd.

share|improve this answer

Samba runs as root, and when you connect, it changes to your user.

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.