LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2009, 04:09 AM   #1
milkies27
LQ Newbie
 
Registered: May 2009
Location: Malaysia
Distribution: Ubuntu, DSL, gOS
Posts: 7

Rep: Reputation: 0
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
 
Old 05-28-2009, 11:33 PM   #2
milkies27
LQ Newbie
 
Registered: May 2009
Location: Malaysia
Distribution: Ubuntu, DSL, gOS
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 05-29-2009, 12:23 AM   #3
pc mohite
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Hi can u Please try changing the Context of the folder u shared using "chconf -R-t sabma_share_t /home/anthony/Pictures"
 
Old 05-29-2009, 04:21 AM   #4
milkies27
LQ Newbie
 
Registered: May 2009
Location: Malaysia
Distribution: Ubuntu, DSL, gOS
Posts: 7

Original Poster
Rep: Reputation: 0
Not Quite understand..

Quote:
Originally Posted by pc mohite View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba mount error on smbfs and cifs tajamari Linux - Networking 2 08-06-2007 10:30 PM
LXer: Automatically mounting and unmounting Samba/Windows shares with CIFS LXer Syndicated Linux News 0 07-27-2007 12:01 PM
mount smbfs vs cifs Zurvan Linux - Networking 2 12-29-2006 03:46 PM
trouble mounting an smbfs system jbeiter Linux - Software 4 11-22-2004 04:48 PM
Samba 3.0.5 Oddness - Mounting smbfs shares rignes Slackware 3 08-16-2004 01:19 PM


All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration