Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a FC2 with Samba Server and ADS support. For my W2k and XP users everything is OK.
I have a FC2 client with Winbind. I try to connect to the Samba Server but everything is wrong.
1.- mount -t smbfs //samba-server/share /mount-point -o rw,username=user as root it works fine.
2.- sudo mount -t smbfs //samba-server/share /mount-point -o rw,username=user,uid=winbind-uid,gid=winbind-group,fmask=777,dmask=777 as winbind user it doesn't work due to permission. I have noticed that file's owner ID belongs to the Samba Server's users.
3.- smb://samba-server/share from Konqueror as winbind user everything is OK.
My idea is to mount the share as winbind user and no as a root or as a konqueror location to work.
Originally posted by waljure sudo mount -t smbfs //samba-server/share /mount-point -o rw,username=user,uid=winbind-uid,gid=winbind-group,fmask=777,dmask=777
Is "winbind" valid local user and "winbind-group" valid local group?
try to use some ordinary user, I think uid and gid specifies the owner of mount point, and is not samba share property.
When I need to mount samba share as ordinary local user, as root I change SUID of smbmount (chmod +s /usr/bin/smbmount) and then use folowing commnad:
smbmount //samba-server/share /mount-point -o rw,username=user,fmask=777,dmask=777
Originally posted by vald Is "winbind" valid local user and "winbind-group" valid local group?
try to use some ordinary user, I think uid and gid specifies the owner of mount point, and is not samba share property.
User and group in uid and gid option are from ADS (Winbind). I created a local user but it did not work.
Quote:
Originally posted by vald When I need to mount samba share as ordinary local user, as root I change SUID of smbmount (chmod +s /usr/bin/smbmount) and then use folowing commnad:
smbmount //samba-server/share /mount-point -o rw,username=user,fmask=777,dmask=777
I think that my problem is the different type of users that I am using. In the Samba Server I have local linux users that have the same username that ADS users. So username/password validation is performed by the Domain Controller but uid and gid belongs to local linux users.
On the other hand my linux box use winbind, so uid depends on idmap parameter. In the Samba Server uid begins in 500 and in the linux box uid begins in 10000.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.