• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Samba: pdbedit - Home Directory


New Member

Messages: 11


I am using Samba as a Standard Alone File server. Security = user

Why is Samba not taking the home directory path from the entry that I can change with pdbedit? When I use the variables %H it will only return the path setup in the /etc/passwd file.

The reason I need this is because I put all home folders under /server/users/"full name" and I dont want to use the unix username as folder name or the home folder setup inside the passwd file. Now I am getting in trouble when I want to setup the recycling folder. %H is returning the wrong value.

Does somebody has any idea to fix this?


Son of Beastie

Thanks: 1,266
Messages: 2,694

I assume you're talking about the -h option? See pdbedit(8); that option doesn't edit the home directory path but the home directory network path. So from what I can tell this option allows you to present a different 'share name' than the actual directory name, but it doesn't change any underlying mechanics. The users physical home directory remains the same.