LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble with mounting window xp system using samba, smbclient, smbfs and cifs (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-with-mounting-window-xp-system-using-samba-smbclient-smbfs-and-cifs-729035/)

milkies27 05-28-2009 03:09 AM

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

milkies27 05-28-2009 10:33 PM

Another question
 
I managed to share the file now but here is another problem:

i create a new linux account called: guests
guests's uid is 10000 and the gid is 10000 as well.

i create a smb account for it as well with the same password of it's login account.

this is the smb.conf

[global]
workgroup = MYPC
netbios name = ANTHONY-TEST

[installer]
path = /home/anthony/installer
read list = @anthony, guests
write list = @anthony, guests

-------------------------end of file---------------------------

Question:

on a window based system, i can view installer and i can access with
"anthony" but not "guests".

Please advice.

pc mohite 05-28-2009 11:23 PM

Hi can u Please try changing the Context of the folder u shared using "chconf -R-t sabma_share_t /home/anthony/Pictures"

milkies27 05-29-2009 03:21 AM

Not Quite understand..
 
Quote:

Originally Posted by pc mohite (Post 3556111)
Hi can u Please try changing the Context of the folder u shared using "chconf -R-t sabma_share_t /home/anthony/Pictures"

Hi there,

thanks for the replied and i have to apologized that i'm not quite understand y i have to do that? could you please explain it to me..?

thank you.


All times are GMT -5. The time now is 11:28 PM.