View previous topic :: View next topic |
Author |
Message |
NicholasDWolfwood Apprentice
Joined: 19 Jan 2003 Posts: 235
|
Posted: Sat Aug 30, 2003 7:24 am Post subject: [Samba] Setting up for specific users |
|
|
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 |
|
|
Dark_Hunter Apprentice
Joined: 28 Mar 2003 Posts: 230 Location: Germany
|
Posted: Sat Aug 30, 2003 10:47 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|