LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-09-2004, 06:22 AM   #1
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
Samba share password? how?


here's my samba.conf

Code:
[global]
        netbios name = SRV
        load printers = No
        guest account = root
        server string = server
        printing = lprng
        remote announce = 192.168.0.255/NGC
        workgroup = NGC
        os level = 33
        domain master = No
        hosts allow = 192.168.0.3, 192.168.0.2, 192.168.0.4, 192.168.0.100, 192.168.0.101, 192.168.$
        security = share
        read raw = yes
        write raw = yes
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF = 8192 SO_RCVBUF = 8192
        wins support = Yes
        ldap ssl = no
        interfaces = eth0

         [Base]
        path = /share/Base
        read only = No
        guest ok = Yes
        browseable = No
Now I want to put a password for this sahre ...so windoze users (who now the password of course) can access it ... how to do it ? ... I don't have idea ...plz help
 
Old 11-09-2004, 06:29 AM   #2
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
use the smbpasswd command

$smbpasswd USERNAME

it will then ask you to set the password
 
Old 11-09-2004, 10:18 AM   #3
slackman
Member
 
Registered: Mar 2003
Distribution: Slack 9.0
Posts: 123

Rep: Reputation: 15
is there a password that can be global for all users? i mean in windoze environment all users can access the sahre using the same pass
 
Old 11-09-2004, 10:33 AM   #4
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
The easiest would be to add a generic user

$ smbadduser generic

then give it a password

$ smbpasswd generic

and add in smb.conf

[windoze] <-------- The Share Name
valid users = generic <-------- Users that can access the share
writealble = yes <-------- People can save to the share
user = generic <-------- Specifies which user can use the share
path = \ <-------- The path that is shared


(restart samba)
The smb.conf extract above shares the root of the linux box to every one that logged into samba using the 'generic' login.
More than 1 person can connect - so long as they have the password.

hope this helps
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Samba share keeps prompting for password debaire Linux - Enterprise 1 12-18-2004 07:08 AM
samba share with password nadine.mauch Linux - Software 7 09-25-2004 05:52 PM
Samba share authentication using logon username and password mikepengelly Linux - Software 0 08-31-2004 03:47 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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