Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

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.