LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-29-2004, 10:26 AM   #1
timmywo
Member
 
Registered: Nov 2003
Location: London UK
Distribution: CentOS 5
Posts: 68

Rep: Reputation: 15
Unhappy Simple Samba Setup, Share & Not Share


Hi everyone,

Im trying to set up a really simple thing...

1 > One share that allows everyone to uses without loging in.

2 > And one share where you have to login to access.

I did set it up to share a share without logging in. When i created a share where a samba user had to login, i would enter the user name and password (in XP) and it would not log me in.

My samba file is below, can some one show me how they set it up?


Code:
[global]

	workgroup = office

	server string = Linux Server


	printcap name = /etc/printcap
	load printers = yes


	log file = /var/log/samba/%m.log

	max log size = 50


	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

	dns proxy = no


#============================ Share Definitions ==============================
	idmap uid = 16777216-33554431
	idmap gid = 16777216-33554431
	template shell = /bin/false
	username map = /etc/samba/smbusers
	password server = None
	guest ok = yes
	winbind use default domain = no
[homes]
	comment = Home Directories
	browseable = no
	writeable = yes

[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = no
# Set public = yes to allow user 'guest account' to print
	printable = yes

[OfficeFiles]
	comment = Office Files
	path = /home/OfficeFiles
	read only = no
	public = yes
I am using Fedora Core 2
 
Old 07-29-2004, 10:28 AM   #2
timmywo
Member
 
Registered: Nov 2003
Location: London UK
Distribution: CentOS 5
Posts: 68

Original Poster
Rep: Reputation: 15
Sorry i forgot to say...

I messed up the system so i instilled Fedora again. Now i cant even share the share "OfficeFiles", it keeps on asking me for a user name and password!
 
Old 07-29-2004, 11:26 AM   #3
timmywo
Member
 
Registered: Nov 2003
Location: London UK
Distribution: CentOS 5
Posts: 68

Original Poster
Rep: Reputation: 15
Talking Its Working!

I dont believe, but i got it working.

I was working with RedHat Samba tool and the samba file, the RedHat tool is not very good and does not do what you tell it to sometimes. But when i did do a change with the tool i would do a change in the file as well and then overwrite the charges with the RedHat tool, that did not help!

Anyway below is my samba file and i hope others can uses it to help them.

Also if you get the problem where windows will not let you change your login name to login to a share have a look at this ... http://www.duxcw.com/faq/network/xpsambalog.htm

Code:
[global]

	workgroup = office

	server string = Linux Server

	printcap name = /etc/printcap
	load printers = yes

	log file = /var/log/samba/%m.log

	max log size = 50

	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

	dns proxy = no


#============================ Share Definitions ==============================
	idmap uid = 16777216-33554431
	idmap gid = 16777216-33554431
	template shell = /bin/false
	password server = None
	guest ok = yes
	security = SHARE
	winbind use default domain = no
[homes]
	comment = Home Directories
	browseable = no
	writeable = yes

[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = no
# Set public = yes to allow user 'guest account' to print
	printable = yes


[OfficeFiles]
	comment = Office Files
	path = /home/OfficeFiles
	writeable = yes
	guest ok = yes

[sOfficeFiles]
	path = /home/sOfficeFiles
	writeable = yes
	comment = Secure Office Files
	valid users = tim

Also in the Server Settings, Put "Authentication Mode:" to "Share"


If anyone thinks i have missed anything let me no.

Tim
 
Old 07-29-2004, 10:49 PM   #4
garretjax
LQ Newbie
 
Registered: Oct 2003
Location: Fredericton NB
Posts: 16

Rep: Reputation: 0
You have no idea how long i been working on a similar problem.. i got closeminded roomates who don't want to deal with anything linux - and i been trying to find ways to share files w/o reuireing them to login.
If this works you have solved many problems for me

haven't tested casue my test box is giving me problems with nic .. .but i will be - and i hope this works
G
 
Old 07-30-2004, 07:27 AM   #5
timmywo
Member
 
Registered: Nov 2003
Location: London UK
Distribution: CentOS 5
Posts: 68

Original Poster
Rep: Reputation: 15
Good luck mate, i hope my messing about helps you. Let me no how you get along
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Slackware & samba, share not found fuelinjection Linux - General 1 07-08-2005 08:34 PM
simple SAMBA share true_atlantis Linux - Software 3 05-28-2004 06:44 PM
Simple Samba 2.8 Howto SHARE question.. mariusak Linux - Software 1 03-01-2004 11:11 AM
Question about Samba 2.2.8a Setup to Share with Windows XP eternalcrow Linux - Software 2 12-15-2003 01:37 PM


All times are GMT -5. The time now is 03:42 PM.

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