LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-24-2012, 05:12 AM   #1
saiyen2002
Member
 
Registered: Dec 2006
Location: London, UK
Distribution: Centos, Fedora
Posts: 50

Rep: Reputation: 0
secure share on samba server


I am running centos 5.5 with samba Version 3.0.33-3.28.el5.

My server type is share since the office users want to be able to browse the file server without any username and passwords.
But now i need to create a share on there that requires user authentication, the finance share.


here is my full config

Code:
[global]
        netbios name = mps
        cups options = raw
        load printers = yes
        server string = Telecom2 Filer Server
        workgroup = workgroup
        os level = 20
        encrypt passwords = yes
        security = share
        passdb backend = tdbsam
        
        [homes]
        comment = Home Directories
        browseable = no
        writeable = yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes



[Media]
       comment = Media Folder
       path = /var/lib/backuppc/share/media
       public = yes
       writable = yes
       printable = no


[public]
       comment = All Users Share
       path = /var/lib/backuppc/share/public
       public = yes
       writable = yes
       printable = no

[Documents]
        comment = Document Folders
        writeable = yes
        public = yes
        path = /var/lib/backuppc/share/documents

[Backups]
        comment = Backups folder
        writeable = yes
        public = yes
        path = /var/lib/backuppc/share/backups

[finance]
        comment = Finance Share
        printable = no
        path = /var/lib/backuppc/share/finance
        valid users = @finance
        force group = finance
        writable = yes
        create mask = 0660
        directory mask = 0771
I have added myself to the smbpasswd. and am part of the group finance

Code:
[root@mps share]# smbpasswd -a athiq
New SMB password:
Retype new SMB password:
[root@mps share]# id -G -n athiq
athiq finance
But when I try to login it does not authenticate. keeps prompting me for username and password.

I tried do change server type to user, but in this case everyone has to enter a username and password, which is not what i want to do.

Thanks
 
Old 05-24-2012, 07:08 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I don't see if you have added a local user on your server, not just samba password (passdb backend = tdbsam <- needs local user)

I would give you some how-to's:
- how to setup samba with tdbsam
- samba server with tdbsam


good luck

Last edited by lithos; 05-24-2012 at 07:10 AM.
 
Old 05-24-2012, 09:01 AM   #3
saiyen2002
Member
 
Registered: Dec 2006
Location: London, UK
Distribution: Centos, Fedora
Posts: 50

Original Poster
Rep: Reputation: 0
local use does exist. You can tell by looking at the outpu of the id command. it shows the user athiq is a part of the group athiq and finance
 
  


Reply

Tags
public, samba, shares


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
[SOLVED] SAMBA problem ?? rebuilding server ?? How to configure SAMBA share with writing - Win Alvin88 Linux - Newbie 5 04-04-2012 12:51 AM
Samba Share Server Permission Help carlosinfl Linux - Server 6 07-16-2008 07:01 AM
File server for samba share Teaboy Linux - Hardware 3 01-04-2007 04:24 AM
samba as a file server/share mnadeemrao Linux - Software 0 10-30-2003 05:21 AM
Share complete server with Samba jeucken Linux - Software 1 08-05-2002 02:03 PM


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