Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Samba] Setting up for specific users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
NicholasDWolfwood
Apprentice
Apprentice


Joined: 19 Jan 2003
Posts: 235

PostPosted: Sat Aug 30, 2003 7:24 am    Post subject: [Samba] Setting up for specific users Reply with quote

How would I set Samba up for specific users? Like, for example, if I wanted to be able to login with a specific account and not just a guest account?

Code:

[global]
   netbios name = Server
   server string = "Server"
   workgroup = @HOME
   security = share
   log file = /var/log/samba.log
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   encrypt passwords = yes
   wins support = yes

[public]
       path = /
       guest ok = yes
       writeable = yes


That's my /etc/samba/smb.conf file. A friend told me to edit /etc/samba/smbusers, but I dunno what the syntax is, or if it even exists right now.

Basically, what I want to do is be able to login with a specific user account instead of a guest account, like use my "vash" account instead of a plain guest account
_________________
AMD Athlon XP 1700+
Abit KG7-RAID
512MB PC2100 DDR266 Corsair/Kingston
40GB WD 7200RPM (37.1GB)
120GB WD 8MB 7200RPM (111GB)
160GB WD 8MB 7200RPM (149GB)
40GB WD 7200RPM (37.1GB)
Pioneer DVR-A06 4x DVD±RW
HP CD-RW 9500i (12x8x32x)
Back to top
View user's profile Send private message
Dark_Hunter
Apprentice
Apprentice


Joined: 28 Mar 2003
Posts: 230
Location: Germany

PostPosted: Sat Aug 30, 2003 10:47 am    Post subject: Reply with quote

at first try an
Code:
smbpasswd -a USERNAME


to add a user you want.

and second step add to smb.conf

Code:
[homes]
   comment = Home Directories
   browseable = no
   writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
 [netlogon]
   comment = Network Logon Service
   path = /var/lib/samba/netlogon
   guest ok = yes
   writable = no

# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
[Profiles]
    path = /var/lib/samba/profiles
    browseable = no
    guest ok = yes

this lines say samba to add login support for users.
for example, if you try to enter your samba-server from a Win-machine you're asked for a password, you have to insert it, and then you're able to acces your home directory (/home/USERNAME) from win.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum