LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-19-2004, 08:56 AM   #1
ukrainet
Member
 
Registered: Nov 2004
Posts: 108

Rep: Reputation: 15
I want to adjust Samba


I want directory localhost/distr is to be available to write on another computer running under WindowsXP. I have created a new section in /etc/samba/smb.conf
[distr]
path=/distr
writable=true
valid user=root
browsable=yes
create mode=0700
and run /etc/rc.d/init.d/smb start from command line.
When I try to get access to Localhost/distr from Usefull running under windows I get:
There is no access. Probably, you do not have rights of use of this network resource.
It was not possible to connect to a network because of existence of conterminous names. Change a name of a computer
 
Old 11-19-2004, 09:10 AM   #2
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
I'm not sure abut the user (root) you have there.
See, I've done this in the past, and continue to do it, in my home network but "root" is not a user in Win.
In order to gain access you need to create a valid user to access the Samba drive and **the same user** must exist in the Windows machine; so when you attempt to log from windows you are recognized as a user.
Hope this helps.

R.
 
Old 11-19-2004, 09:23 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,943

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
So what distribution / version of linux are you running?
If your computer hostname is localhost it needs to be changed. localhost refers to the loocal loopback i.e. IP address 127.0.0.1. By default samba uses the computer host name.

Add the following to the smb.conf file
netbios name = Any-computer-name

IMHO is isn't a good idea to use root as a samba user.
 
Old 11-19-2004, 10:05 AM   #4
ukrainet
Member
 
Registered: Nov 2004
Posts: 108

Original Poster
Rep: Reputation: 15
OK. I have created two same users with same passwords in Linux and Windows. When I try to get access to Localhost/distr I get login window: I entered the proper username and password. But window appears again (such as login or password is unvalid)
 
Old 11-19-2004, 10:13 AM   #5
ukrainet
Member
 
Registered: Nov 2004
Posts: 108

Original Poster
Rep: Reputation: 15
I use Redhat Linux9. /distr was created by root. How to adjust write possibility to /distr under other username.
 
Old 11-19-2004, 10:16 AM   #6
ukrainet
Member
 
Registered: Nov 2004
Posts: 108

Original Poster
Rep: Reputation: 15
I added the following to the smb.conf file
netbios name = Any-computer-name in [distr] section.
But it doesn't work. Whats wrong?
 
Old 11-19-2004, 10:26 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,943

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
My fault.
It needs to be in the global section. Replace any-computer-name with anyname desired.

And then you need to restart samba.

You also need to create a smbuser. log in as root:
smbpasswd username
Then enter password. Replace username with the ones you created.

Use chmod to change permissions of the /distr directory.

Also change valid user entry too.
 
Old 12-16-2004, 03:04 AM   #8
ukrainet
Member
 
Registered: Nov 2004
Posts: 108

Original Poster
Rep: Reputation: 15
I can't create a smbuser.
When I run smbpasswd username, I get:
unable to open passdb
 
Old 12-16-2004, 03:13 PM   #9
Maqo
LQ Newbie
 
Registered: Jan 2003
Location: NY
Distribution: Mandrake 10.0 Official
Posts: 21

Rep: Reputation: 15
Are you running smbpasswd as root? Did you run "smbpasswd -a" first to create the user?
 
  


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
How do I adjust the clock? atheist Linux - General 8 02-18-2004 10:15 PM
how to adjust a timer???? perdesiz Linux - Software 1 09-10-2003 08:16 AM
Display adjust GtFik Linux - Newbie 4 07-26-2003 05:03 PM
Brightness Adjust? Mega Man X Linux - General 2 06-06-2003 02:47 PM
Need to adjust volume amp2000 Linux - General 3 01-11-2002 02:54 PM


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

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