However, other users will
not be able see or share this directory. The [printers] section enables all users to print to any
printer configured on the local Linux system.
Adding Samba Users
Performing user-style Samba security means assigning a Linux user account to each person using
the Linux file systems and printers from his or her Windows workstation. (You could assign users
to a guest account instead, but in this example, all users have their own accounts.) Then you need
740
Running Servers Part V
to add SMB passwords for each user. For example, here is how you would add a user whose
Windows workstation login is chuckp:
1. Type the following as root user from a Terminal window to add a Linux user account:
# useradd -m chuckp
2. Add a Linux password for the new user as follows:
# passwd chuckp
Changing password for user chuckp
New UNIX password: ********
Retype new UNIX password: ********
3. Repeat the previous steps to add user accounts for all users from Windows workstations
on your LAN that you want to give access to your Linux system.
4. Type the following command to create the Samba password file (smbpasswd) on Fedora
Linux systems:
# cat /etc/passwd | /usr/bin/mksmbpasswd.sh > /etc/samba/smbpasswd
In Debian systems, use the /usr/sbin/mksmbpasswd command instead of
mksmbpasswd.
Pages:
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354