LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2004, 02:37 PM   #1
Tezdread
Member
 
Registered: Aug 2002
Location: England
Distribution: SuSE 8.1
Posts: 84

Rep: Reputation: 15
Problem with shared directory


Hi all,

I've set up a share on my suse 8 box and I can see it from my windows box but when i try to access it I get a username and password box appear?

I've checked the dir permissions and as far as I can tell they are set to read/write everyone (drwx------)

Any suggestions on what it might be?

Thanks in advance
 
Old 03-14-2004, 05:46 PM   #2
dannymacom
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Rep: Reputation: 15
try creating a new user with the command adduser than creating a account so you can connect to this share from windows. the permissions aren't really going to help unless you have a username pass to get in
 
Old 03-15-2004, 01:08 PM   #3
Tezdread
Member
 
Registered: Aug 2002
Location: England
Distribution: SuSE 8.1
Posts: 84

Original Poster
Rep: Reputation: 15
cheers danny,

I've tried smbadduser (I guess this is what you mean) but when I type smbadduser newuser, I get this...?

/usr/bin/smbadduser: unalias: `bin': not an alias
/usr/bin/smbadduser: unalias: `boot': not an alias
/usr/bin/smbadduser: unalias: `cdrom': not an alias
/usr/bin/smbadduser: unalias: `dev': not an alias
/usr/bin/smbadduser: unalias: `downloads': not an alias
/usr/bin/smbadduser: unalias: `etc': not an alias
/usr/bin/smbadduser: unalias: `floppy': not an alias
/usr/bin/smbadduser: unalias: `home': not an alias
/usr/bin/smbadduser: unalias: `lib': not an alias
/usr/bin/smbadduser: unalias: `media': not an alias
/usr/bin/smbadduser: unalias: `mnt': not an alias
/usr/bin/smbadduser: unalias: `opt': not an alias
/usr/bin/smbadduser: unalias: `proc': not an alias
/usr/bin/smbadduser: unalias: `root': not an alias
/usr/bin/smbadduser: unalias: `sbin': not an alias
/usr/bin/smbadduser: unalias: `tmp': not an alias
/usr/bin/smbadduser: unalias: `usr': not an alias
/usr/bin/smbadduser: unalias: `var': not an alias

Bit of a noob to this so sorry if I missed the point
 
Old 03-15-2004, 01:15 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If you put in your global:

security=share

And in your share setup:

guest ok=yes
guest only=yes

It should let everyone connect to the share without the need for a password. It would be a good idea to limit which IPs can connect to the share (this can be done in smb.conf) since anyone in the world could get into your file server with this setup (assuming of course your file server is open to the internet, otherwise, it isn't really a problem).
 
Old 03-16-2004, 11:38 AM   #5
Tezdread
Member
 
Registered: Aug 2002
Location: England
Distribution: SuSE 8.1
Posts: 84

Original Poster
Rep: Reputation: 15
I added what you advised but it hasn't changed anything?

This is my smb.conf file (etc/samba/smb.conf)

# Global parameters
[global]
workgroup = DREADZONE
netbios name = PLUTO
server string = Pluto
security = SHARE
encrypt passwords = Yes
character set = ISO8859-15
os level = 2
guest only = Yes
guest ok = Yes
printing = lprng
veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[homes]
comment = Home Directories
read only = No
create mask = 0640
directory mask = 0750
browseable = No

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[Linux Downloads]
path = /downloads
comment = Linux Downloads on Pluto
writeable = yes
 
Old 03-16-2004, 04:46 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Here is a basic smb.conf that I use. I know for a fact that this will allow Windows XP (and it should work with NT and 2000) clients to access the share without a password prompt.

Code:
[global]
	workgroup = MAIN
	server string = File Server
	hosts allow = 192.168.1.
	encrypt passwords = yes
	security = share
[File Storage]
	comment = General Storage
	path = /File_Storage
	guest ok = yes
	guest only = Yes
	writeable = yes
	read only = no
Try to use that as the base of your file, and built from it.
 
  


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
Linux shared directory for XP sjmgeezer Linux - Networking 1 06-03-2005 09:49 PM
Where to put shared directory? mikieboy Slackware 11 02-12-2005 03:07 PM
Shared directory Sir.Del Linux - General 1 07-27-2004 12:35 PM
Writing to a shared directory under Mandrake 9x julius Linux - Networking 1 03-28-2004 02:44 AM
Umounting NFS shared directory matta Linux - Networking 2 03-09-2004 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:26 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