LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-29-2009, 02:08 AM   #1
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Rep: Reputation: 15
accessing windows shared folders


hi all,,how can i access windows xp shared folders on redhat linux.I have samba installed and smb running successfully.
 
Old 07-29-2009, 02:12 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You can do it from your browser if it supports the smb:// protocol. Konqueror does and perhaps many other do as well.
You can also use the command line if you prefer. The samba documentation explains how to do it.
cheers,
jdk
 
Old 07-29-2009, 02:20 AM   #3
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jdkaye View Post
You can do it from your browser if it supports the smb:// protocol. Konqueror does and perhaps many other do as well.
You can also use the command line if you prefer. The samba documentation explains how to do it.
cheers,
jdk
i would like to do it from command line,,from where i can get samba documentation
 
Old 07-29-2009, 02:26 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
From the command line you can do:

Code:
smbmount //windows_ip_address/shared_folder mount_directory -o username=smith
smith is your username on the windows machine, windows_ip_address is the ip address of the windows machine on the same network, shared_folder is the share name of the folder, and mount_directory is an empty directory on the linux machine you are setting up as the access point.

You don't need samba running as a server to do this, just the samba client (eg smbfs package).

At the command line,
'man smbmount'

and
'man smbclient'

will give you more information.
 
Old 07-29-2009, 02:41 AM   #5
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by neonsignal View Post
From the command line you can do:

Code:
smbmount //windows_ip_address/shared_folder mount_directory -o username=smith
smith is your username on the windows machine, windows_ip_address is the ip address of the windows machine on the same network, shared_folder is the share name of the folder, and mount_directory is an empty directory on the linux machine you are setting up as the access point.

You don't need samba running as a server to do this, just the samba client (eg smbfs package).

At the command line,
'man smbmount'

and
'man smbclient'

will give you more information.
thanks alot its working,,,now i can access and modify windows files,,same is possible for linux???can i access linux files from windows or not.one more thing it is also giving sm errors like
samba:invalid option --o
3681:session request to win_ip_add failed(called name not present)
should i care about these??
 
Old 07-29-2009, 04:37 AM   #6
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
can i access linux files from windows or not.
For sure, but for this you do need the samba server installed, which I think you already have. It runs as a process called smbd.

The configuration is managed by the file /etc/samba/smb.conf

If you have a look in this file, it has lots of comments to explain the sections. You can also 'man smb.conf' for more information.

If you change the configuration, you can restart the samba daemon
/etc/init.d/samba restart

As to the error messages, when did you get these? Was this from smbmount?

Last edited by neonsignal; 07-29-2009 at 04:40 AM.
 
Old 07-29-2009, 04:39 AM   #7
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
yes you can share a directory with samba for windows users, and you can also make the samba as PDC (Primary Domain Controller) where your user will have a transparent shared directory for each user. and roaming profiles can be done also in samba.

you need to configure smb.conf file
 
Old 07-29-2009, 11:51 PM   #8
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
As to the error messages, when did you get these? Was this from smbmount?[/QUOTE]
yes from smbmount
 
Old 07-29-2009, 11:53 PM   #9
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shahz View Post
yes you can share a directory with samba for windows users, and you can also make the samba as PDC (Primary Domain Controller) where your user will have a transparent shared directory for each user. and roaming profiles can be done also in samba.

you need to configure smb.conf file
okk thanks,,i ll try that
 
Old 07-30-2009, 01:12 AM   #10
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
when you configure your smb.conf file check for the internal correction with the following command.

testparm
 
Old 07-30-2009, 01:17 AM   #11
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shahz View Post
when you configure your smb.conf file check for the internal correction with the following command.

testparm
i did this and the result was "okk"" no problems
 
Old 07-30-2009, 01:31 AM   #12
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
paste your smb.conf file here
 
Old 07-30-2009, 02:21 AM   #13
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shahz View Post
paste your smb.conf file here
cant as i told u mozilla is not working there and i am not able to acces that computer through putty
 
Old 07-30-2009, 02:29 AM   #14
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by neonsignal View Post
As to the error messages, when did you get these? Was this from smbmount?
yes from smbmount,,i think these arrors are related to somewhat windows as even providing wrong password for specified computer ,,i can access shared folders,,i dont know how but this is happening
 
Old 07-30-2009, 02:59 AM   #15
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
Quote:
Originally Posted by mehnaz View Post
cant as i told u mozilla is not working there and i am not able to acces that computer through putty
well when you can get a share from windows to Linux, through smbmount then you can just copy your smb.conf file there and you can get it then in windows just copy paste will get the smb.conf here.
 
  


Reply



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
accessing shared folders tannu_ah Linux - Newbie 1 05-02-2009 04:19 PM
Accessing shared folders on windows systems from my Fedora system man_msc Linux - Networking 1 08-08-2006 08:57 AM
Samba not accessing my Windows Shared folders Felpipe Linux - Networking 3 08-04-2005 08:34 AM
Accessing windows shared folders in linux srivatsava Linux - Networking 1 09-29-2004 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 AM.

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
Open Source Consulting | Domain Registration