LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-30-2003, 05:39 AM   #1
Peds222
LQ Newbie
 
Registered: Jun 2003
Location: South Africa
Distribution: RED Hat 7.3
Posts: 11

Rep: Reputation: 0
Question samba file share with windows users


please can someone help i have replaced one of our servers with a linux box. I have a folder that i need everyone in the company to have access to it but i have shared it and when i try to access it from any computer it asks me to log in.

do i have to make a entry for each user???????????

i know in windows you normally enable the guest account is there something i need to do on linux or am i missing something


[programs]

path = /programs
browseable = yes
public = yes
guest ok = yes
read only = no

please help me out
 
Old 07-30-2003, 07:04 AM   #2
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
hello

i have done this , but first i was trying with smb.conf file, then a find a simple and easy way. i used it in redhat 9 Gnome. (defauld samaba installation)
just install samba GUI configuring tool, U can do this from add and remove programe in system setting menu.
after istallation tool install in server setting menu in system setting as samaba server , run it and click on add and select share directory, then click on read and write permission,then select allow access for evry one (or urs requier permission) ok
and . then go in server setting in prefereces tag, type urs workgroup name and in security tag select share in Authentication mode it will enable share level access for remote user and will not ask password, may be this will solve urs problem
enjoy
it will strat sharing from linux box to Microsoft.
 
Old 07-30-2003, 04:38 PM   #3
TSloth
Member
 
Registered: Oct 2002
Location: Houston, Texas
Posts: 97

Rep: Reputation: 15
I use Samba to share a filesystem on my Mandrake 9.1 box to the Windows computers on my home network.

Try browsing to http://localhost:901 and log in as root to administer Samba and to view documentation.

In Globas, I set the netbios name and workgroup name and "hosts allow" to "192.168.1.", which is the set of addresses behind my firewall.

In Shares, create a share with the name you want to be broadcast. I set "readonly" to "no", and "guest ok" to "yes".

Here's some of my settings, which I see under the "View" button. My share is called "e"; it's near the bottom of this file:

# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2003/07/30 14:27:29

# Global parameters
[global]
netbios name = MYCOMPUTERNAMEHERE
server string = Samba Server %v
encrypt passwords = Yes
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm
hosts allow = 192.168.1.
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = Yes

[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/tmp
guest ok = Yes
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &

[Printer]
comment = HP DESKJET 960C
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
printer name = Printer
oplocks = No

[e]
path = /mnt/win_e
read only = No
guest ok = Yes


Other commands you may find useful:
smbclient, nmblookup, smbmount, smbumount
 
Old 07-30-2003, 05:07 PM   #4
TSloth
Member
 
Registered: Oct 2002
Location: Houston, Texas
Posts: 97

Rep: Reputation: 15
Peds,

I just re-read your post, and see that you've already done the equivalent of what I did.

One more thing... When setting up the Globals, I remember choosing SHARE security instead of USER security.

If you've solved this problem, I'd be interested in hearing what the solution was.

Thanks,
- TSloth
 
Old 07-31-2003, 03:17 AM   #5
Peds222
LQ Newbie
 
Registered: Jun 2003
Location: South Africa
Distribution: RED Hat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Hey guys

sorted the proble out thanks to Mobassir Sattar khan

it works on the button and you can even give specific users access to that folder

TSloth thanks for the post but i found the othere method much easier thanks for your help anyway
 
Old 08-22-2003, 06:16 AM   #6
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
Hello

every one

I can read and write any thing on Microsoft windows machin from Redhat 9 machin, but i can only read and can not write on linux machine from microsoft machin.
i used Samaba GUI tool to do this , following is my shares on linux box
WorkGroup name is "workgroup"

Directory name Permissions
/mnt/my-share Read/Write

and folowing setting in server setting tab in samaba GUI tool

Authentication mode share
Authentication Server None
Encrypt Password No
guest Account Mobassir

what mistake am i doing for this simple sharing

and how i can join my this linux machin to Microsoft 2000 server as a client


thank u very much for all

__________________

Mobassir Sattar khan
 
Old 08-22-2003, 12:07 PM   #7
ede
Member
 
Registered: Aug 2003
Posts: 37

Rep: Reputation: 15
you have probably mounted a directory that is on a fat32 partition an you will have to give write permissions to that directory for everyone not only for root. edit /etc/fstab and set the correct values (i think this will solve your problem)
 
  


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: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
how can i share a file/folder common to all network users zameer_india Linux - Networking 1 09-30-2004 07:17 AM
samba windows share file size limit Axion Linux - Software 2 04-04-2004 02:20 PM
Map to share then allow users to access subfolders problem in SAMBA ryanzietlow Linux - Software 1 03-26-2004 06:31 PM
samba - users can see system files etc when accesing share t3___ Linux - Software 8 01-08-2004 01:31 AM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration