LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-11-2005, 03:59 PM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Samba problem - no permissions


Hi all,

I have a new server running RHEL9, and for some reason, going to \\servername\ gets me a list of all shares without any authentication at all. I know it has to be something simple that will make it require a login for all shares, but I can't seem to find the setting.

Any help would really be appreciated. Thanks!
 
Old 10-11-2005, 04:06 PM   #2
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
Update of sorts. I found the following in smb.conf:

Quote:
[vault]
comment = D600 File Vault
path = /vault
writeable = yes
guest ok = no
public = no
Setting guest ok and public to 'no' seemed to do the job of disabling public access, but now from a Windows box, I get a login prompt with Guest as the only user option - I can't change the username.
 
Old 10-12-2005, 06:29 AM   #3
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
Friendly morning bump.
 
Old 10-13-2005, 12:29 PM   #4
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
And another.
 
Old 10-14-2005, 10:45 AM   #5
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
So here's what I have now:

Quote:

[vault]
comment = D600 File Vault
path = /vault
writeable = yes
guest ok = yes
public = yes
write list = @cotdev
create mask = 0777
security mask = 0777

[share]
comment = D600 Shared Folders
path = /bitbucket/share
guest ok = yes
writeable = yes
public = yes
write list= @cotdev

[Profiles]
comment = Kursk User Fileshares
path = /bitbucket/profiles/%U
guest ok = yes
writeable = yes
public = yes
create mask = 0777
security mask = 0777
write list = @cotdev

[Falconview]
comment = Falconview Map Depot
path = /vault/Falconview
guest ok = yes
writeable = yes
read only = yes
public = yes
write list = @cotdev
All of my shares are working as intended, aside from the Profiles share. I basically have to have guest, public and browsable set to yes in order for people with folders there to be able to get them to show up. What I'm trying to do is to have the Profiles share visible to all, but if clicked on, have it toss up a login box. If I log in as johndoe, I'd like Profiles\johndoe to be the only visible folder. Right now, if I turn off browsable/guest access, a login box pops up but doesn't allow me to put in a username.

Is this possible?
 
Old 11-08-2005, 05:05 AM   #6
Ly*
LQ Newbie
 
Registered: Jan 2005
Distribution: SuSE 9.1, 9.3, 10.0, SLES 9.0
Posts: 6

Rep: Reputation: 0
If you say

guest ok = yes
public = yes

you'll have no password request, because you are registered as guest.
From the smb.conf man page:

public

This parameter is a synonym for guest ok.

guest ok (S)

If this parameter is yes for a service, then no password is
required to connect to the service. Privileges will be those of
the guest account.

This paramater nullifies the benifits of setting restrict
anonymous = 2

See the section below on security for more information about
this option.

Default: guest ok = no

So you can put away those "public" parameters, and leave "guest ok = no", and you'll have an authentication request.
 
  


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
Samba printing permissions problem ahz10 Linux - Networking 1 05-05-2005 10:34 AM
Samba Permissions Problem Stormblade Linux - Software 1 11-12-2004 07:09 AM
Folder permissions problem with Samba albracco Linux - Networking 4 08-24-2004 10:09 PM
samba folder permissions problem albracco Linux - Software 4 07-02-2004 07:01 PM
Samba Permissions Problem gigglesnorter Linux - Software 0 05-24-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:24 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
Open Source Consulting | Domain Registration