Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux on windows domain

Status
Not open for further replies.

Noip

IS-IT--Management
Apr 25, 2002
240
MU
HI,

I am trying to acces a widows PC on a windows domain from my Linux box by using the following:
# mount -t smbfs -o username=userx,password=xxxxxx //winhostpc/shared /localpath/dir

the shared folder has r/w permissions only for this user but it won't work.

If I give permission to everyone, then I am able to access it form my linux bow.

Any help will be appreciated

Thanks

 
I haven't researched the issue yet, but removing the ",password=xxx" worked for me to mount a share (including $) on a Win2k server. It just prompted me for the password. I know it's not perfect, but if it works for you then maybe you can narrow down how to get the password in correctly.
 
Still no success with:

# mount -t smbfs -o username=userx //winhostpc/shared /localpath/dir

<then enter password>
 
you can also use
0o username=userx%password

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
Did you mean:

#mount -t smbfs -o username=<username>%<password> //winhostpc/shared /localpath/dir

Still no result.
The same error message when listing the directory:
ls: .: Stale NFS file handle

 
Stale NFS Handle. You are trying to mount via samba not nfs. If you are getting a Stale NFS Handle, then sounds like you were mounted using NFS, and the connection was lost, but the mount still remains.

Try mounting using samba to a different mount point.

You can also try this syntax:
smbmount //winhostpc/shared /localpath/dir -o username=<username>%<password>

To verify that you can see what is mounted try this:
smbclient -L winhostpc -U <username>%<password>

make sure that you can get the shares list.

If you are still getting errors then look at /var/log/samba/log.smbd and /var/log/samba/log.nmbd (default samba log file locations)

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
Thanks lawrence,

I've tried:

1. mounting to a different mountpt
2. smbmount //winhostpc/shared /localpath/dir -o username=<username>%<password>
3. smbclient -L winhostpc -U <username>%<password> - I can view the list of the shared folders

Note: when I give access to everyone on the shared folder, I can mount the shared folder from Linux. The 'everyone' user comes from the domain list of users

But a strange thing happens when I view the shared folders using 'smbclient'. When I use a user say 'user1' which is not a domain user. I can't see the shares. When I use any domain user, I can see the shares. But when I check the permission for the shared folder on the windows host, the permissions are set only to a specific domain user.


Thanx for any more suggestions
 
Are you joined to a domain?

If so, are you using winbindd?

What version of samba? ACLS on or off?

What type of filesystem are you using? xfs, jfs, ext3? Are you using extended attributes and acls?

You may not have ACLS built in.

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
winbindd you say, never heard of it in Linux

[root@localhost root]# rpm -qa | grep samba
samba-client-2.2.5-10
samba-swat-2.2.5-10
samba-2.2.5-10
samba-common-2.2.5-10

ACLS? Don't know

Filesystem: Ext3

Thanx for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top