---
title: Samba
url: 'https://kb.stavlib.cz/linux/samba'
markdown: 'https://kb.stavlib.cz/linux/samba.md'
date: '2026-10-26'
description: 'Samba Adding new user add new user to linux useradd joe or adduser joe add password for that user passwd joe add password for the user, but for same (it can be the same as before) smbpasswd -a joe LINUX CIFS fstab //IPADdRESS/directory /mnt/whatever cifs credentials=/home/user/file 0 0 command moun…'
---

[](#)# Samba

# Samba

## Adding new user

add new user to linux

```
useradd joe
```

or

```
adduser joe
```

add password for that user

```
passwd joe
```

add password for the user, but for same (it can be the same as before)

```
smbpasswd -a joe
```

#### LINUX CIFS

fstab

//IPADdRESS/directory /mnt/whatever cifs credentials=/home/user/file 0 0

command

mount -t cifs -o credentials=/home/user/file //IPADDRESS/directory /mnt/whatever

---

## Navigation

- Parent: [Linux](https://kb.stavlib.cz/linux.md)
- Previous: [Networking](https://kb.stavlib.cz/linux/networking.md)
- Next: [Domain and WIN](https://kb.stavlib.cz/linux/domain-and-win.md)
