|
Trouble with mounting window xp system using samba, smbclient, smbfs and cifs
Hi Linux Experts,
I just started to use linux 2-3days ago,
manage to learn the minimum settings...
now i'm started to work around on samba server...
i'm the only linux user in the office, so its better to
have access to the shared files on file server and other systems which
are window based.
Here are what i've done"
Run apt-get install samba - successful
hostname:mypc
username:anthony
distro: gOS (Very similar to ubuntu, i think)
this is the testing version of my smb.conf
[Global]
workgroup = office
netbios name = Anthony-test
encrypt passwords = yes
[everyone]
path = /home/anthony/Pictures
read only = no
browsable = yes
[homes]
Browseable = no
read only = no
----------------------------end of file---------------------
i've add user to the samba server "smbpasswd -a anthony",
and restart the service.
now when run "smbclient -L mypc" with no password
i can see the other pc which is under the same network with my pc.
according to some of the guide on how to setup samba, they mentioned
that we can test login using unix credential locally.
so in the terminal, i key in "smbclient //mypc/anthony"
and i key in password when it prompt me,
here is what i got:
"Session Setup failed: NT_STATUS_LOGON_FAILURE"
OR
if i don't key in anything in the password field
"Anonymous login successful
Domain=[office] OS=[Unix] Server=[Samba 3.0.28a]
tree connect failed: NT_STATUS_ACCESS_DENIED"
I get the window based pc to access my pc, it can be seen in my network neighbour, but can't access (access denied).
Now, if i reset the smbpasswd for anthony, it can access directly.
Then i so it the other way round which i create a folder on that window based pc and i shared it to everyone, and i try mount it on my linux pc..
using the following command:
root@mypc:/# mount -t cifs //window_pc/test /mnt/win -o user=office\anthonychan
OR
root@mypc:/# mount -t smbfs //window_pc/test /mnt/win -o user=office\anthonychan
ERROR: "mount error 1 = Operation not permitted"
NOTE: the "anthonychan" is my window domain login name with password as well.
please advice...
i'm very confuse now...
Regards,
Anthony
|