...
Just my blog

Blog about everything, mostly about tech stuff I made. Here is the list of stuff I'm using at my blog. Feel free to ask me about implementations.

Soft I recommend
Py lib I recommend

I'm using these libraries so you can ask me about them.

centos mount smb

Shitty task I can`t resolve:

[root@web-server tmp]# smbclient -L 192.168.1.22 -U samba
WARNING: The security=share option is deprecated
Enter samba's password:
Domain=[TET-AD] OS=[Windows Server 2008 R2 Enterprise 7601 Service Pack 1] Server=[Windows Server 2008 R2 Enterprise 6.1]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        Data            Disk      Programms install, Driverpacks, Backups etc.
        E$              Disk      Default share
        F$              Disk      Default share
        Files           Disk      An old IDE 160Gb disk for files and torrents
        H (Daemon tools) Disk
        Home            Disk
        Install         Disk      Installation of programms
        IPC$            IPC       Remote IPC
        J$              Disk      Default share
        Music           Disk      Music from tet-server
        Photos          Disk
session request to 192.168.1.22 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available

But when I`m trying to mount it: 1.

[root@web-server tmp]# mount -t cifs -o samba,PASS //192.168.1.22/Files /mnt/Files
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

2.

[root@web-server tmp]# mount -t cifs -o samba //192.168.1.22/Files /mnt/Files
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

3.

[root@web-server tmp]# mount.cifs \\192.168.1.22\Files /mnt/Files -o guest
mount.cifs: bad UNC (\192.168.1.22Files)
[root@web-server tmp]# mount.cifs //192.168.1.22/Files /mnt/Files -o guest
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

4. Frustration! SOLUTION! for domain users: link usually : mount -t cifs //<MachineName>/<Shared Folder> /mnt/Shared -o username=<username>,password=<password> give you error 13. correct : mount -t cifs //<MachineName>/<SharedFolder> /mnt/Shared -o username=<DomainName>/<username>,password=<password> To allow OwnCloud to SMB

setsebool -P httpd_can_network_connect 1