LinuxQuestions.org
Review your favorite Linux distribution.
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-30-2009, 04:58 AM   #16
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by shahz View Post
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.
here is the conf file,,its in wordpad format

[global]
workgroup = mygroup
server string = samba server
hosts allow = 172.16.1. 127
printcap name = /etc/printcap
load printers = yes
printing = cups
printcap name = cups
printer admin = mygroup
printer admin = root, mygroup
log file = /var/log/samba/%m.log
max log size = 100
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n

*passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes

security = SHARE
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775
path = /usr/local/samba/profiles
browseable = no
guest ok = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
[tmp]
comment = Temporary file space

path = /tmp
read only = no
public = yes

[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = yes
write list = @staff
 
Old 07-30-2009, 05:18 AM   #17
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shahz View Post
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.
[global]
workgroup = mygroup
server string = samba server
hosts allow = 172.16.1. 127
printcap name = /etc/printcap
load printers = yes
printing = cups
printcap name = cups
printer admin = mygroup
printer admin = root, mygroup
log file = /var/log/samba/%m.log
max log size = 100
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n

*passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes

security = SHARE
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775
path = /usr/local/samba/profiles
browseable = no
guest ok = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
[tmp]
comment = Temporary file space

path = /tmp
read only = no
public = yes

[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = yes
write list = @staff
 
Old 07-30-2009, 05:35 AM   #18
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 363

Rep: Reputation: 29
Quote:
Originally Posted by mehnaz View Post
[global]
workgroup = mygroup
server string = samba server
hosts allow = 172.16.1.127
printcap name = /etc/printcap
load printers = yes
printing = cups
printcap name = cups
printer admin = mygroup
printer admin = root, mygroup
log file = /var/log/samba/%m.log
max log size = 100
# smb passwd file = /etc/samba/smbpasswd
# unix password sync = Yes
# passwd program = /usr/bin/passwd %u
# passwd chat = *New*password* %n\n *Retype*new*password* %n\n

#*passwd:*all*authentication*tokens*updated*successfully*
# pam password change = yes
# obey pam restrictions = yes

security = SHARE
dns proxy = no
#[homes]
# comment = Home Directories
# browseable = no
# writeable = yes
# valid users = %S
# create mode = 0664
# directory mode = 0775
#path = /usr/local/samba/profiles
# browseable = no
# guest ok = #yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
[tmp]
comment = Temporary file space

path = /tmp
read only = no
public=yes

[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = yes
#write list = @staff
I have commented some lines for just a sample share for windows.

now go to your windows start-run and run the following command

\\ipaddress of your samba server

do you get the tmp public share and printer share

Last edited by shahz; 07-30-2009 at 05:44 AM.
 
Old 07-31-2009, 04:33 AM   #19
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shahz View Post
I have commented some lines for just a sample share for windows.

now go to your windows start-run and run the following command

\\ipaddress of your samba server

do you get the tmp public share and printer share
i followed your instructiions,,applying \\ ip address of samba server giving me error "the file name,directory name or volume label syntax is incorrect".
 
Old 07-31-2009, 05:01 AM   #20
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Forgive me if this is obvious, but you are substituting the actual number (for example 192.168.1.2) for the bit that says "ipaddress of your samba server)?

If you are connecting from windows95/98, you might have to use forward slashes (I can't remember that far back). Make sure there are no spaces,
for example:
//192.168.1.2
 
Old 08-01-2009, 02:05 AM   #21
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by neonsignal View Post
If you are connecting from windows95/98, you might have to use forward slashes (I can't remember that far back). Make sure there are no spaces,
for example:
//192.168.1.2
i am connecting from win xp plus using backward slashes,,but still on zero
 
Old 08-01-2009, 10:00 AM   #22
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 363

Rep: Reputation: 29
did you restart your service. to get the new changes.
 
Old 08-03-2009, 01:41 AM   #23
mehnaz
Member
 
Registered: Jun 2009
Location: Quetta Pakistan
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shahz View Post
did you restart your service. to get the new changes.
yes
 
  


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


All times are GMT -5. The time now is 08:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration