Questions tagged [cifs]

Common Internet File System (CIFS) is a network filesystem protocol used for providing shared access to files and printers between machines on the network.

The Common Internet File System (CIFS), also known as Server Message Block (SMB), is a network protocol whose most common use is sharing files on a Local Area Network (LAN). The protocol allows a client to manipulate files just as if they were on the local computer.

It allows operations such as:

  • read
  • write
  • create
  • delete

The only difference being that the files are not on the local computer and are actually on a remote server.

The CIFS protocol works by sending packets from the client to the server. Each packet is typically a basic request of some kind, such as open file, close file, or read file.

The server then receives the packet, checks to see if the request is legal, verifies the client has the appropriate file permissions, and finally executes the request and returns a response packet to the client. The client then parses the response packet and can determine whether or not the initial request was successful.

CIFS is a fairly high-level network protocol. In the OSI model, it is probably best described at the Application/Presentation layer. This means CIFS relies on other protocols for transport. The most common protocol used for reliable transport is NetBIOS over TCP (NBT), which will be described in the NetBIOS chapter below. Other protocols have been used for the transport layer, however with the enormous popularity of the Internet, NBT has become the de-facto standard.

The Common Internet File System (CIFS) is a general-purpose network file system protocol. It provides clients with managed, concurrent access to files and directories hosted on server systems. It also provides access to print queues and interprocess communication services, and supports authenticated transport for remote procedure call subprotocols. With a few exceptions, CIFS is client-driven in that a client makes requests to which a server responds.

To this end, CIFS defines three entities: the client, the server, and the application. The client is an implementation of the protocol and originates most of the messages. The server is also an implementation of the protocol and provides the majority of the functionality described herein as a service. Remaining functionality is handled by a number of subsystems associated with CIFS. These include:

◾Transaction processing subsystems (SMB Trans, SMB Trans2, and NT Trans)

◾User authentication subsystem

◾Distributed File System (DFS) processing subsystem

◾Remote Administration Protocol (RAP) processing subsystem

◾Remote Procedure Call (RPC) processing subsystem

These subsystems can be integrated into a CIFS server implementation or can be accessed as separate services via CIFS.

References:

  1. CIFS Explained - CodeFX
  2. [MS-CIFS]: Common Internet File System (CIFS) Protocol
29 questions
23
votes
6 answers

Using SMB server without root access

I'm looking for a way for my HTC Hero (Android 2.1) so I can share the contents of my SD card and phone memory over the WiFi network like a regular Windows file share. I'd like one that does not require me to root my phone, and am willing to pay for…
Day
  • 333
  • 1
  • 2
  • 7
19
votes
2 answers

How to mount SMB/CIFS Network Shares on android device?

I have a rooted android device running on gingerbread. I was wondering if there is a way to mount my windows CIFS(Common Internet File System) Shares on my android device over WiFi. Is it required to have a kernel that supports CIFS protocol for…
VVK
  • 1,951
  • 8
  • 28
  • 46
6
votes
1 answer

Does any version of Android support smb natively?

I use Android 2.x on my phone and will buy a Tegra 3 tablet in the (hopefully) near future. I use files on my NAS with my phone. I can access those files with external tools (ES file explorer), but other applications cannot access these files. I…
Ole Albers
  • 269
  • 1
  • 16
4
votes
7 answers

Good combination for playing media from SMB/CIFS share?

Currently I am using ES File Explorer + MX Player to play audio and video files for this. Unfortunately it has some problems: MX Player sees only current playing file, not a directory. So I can't jump to next file from within player. I need to go…
Dims
  • 569
  • 2
  • 8
  • 21
4
votes
0 answers

How to mount network drive so it's accessible by other apps file picker?

I have a handful of apps that have file pickers, but they only show me what is in /storage/emulated/0 (also shown on my phone as "Internal Storage") and below. I want to mount a NAS so that i can access the files through these other apps but I can't…
Taako
  • 141
  • 1
  • 4
4
votes
1 answer

Backup Android phone directly to network location periodically

I want to backup as much as possible from a rooted Android phone(user-data, app-data, etc) on a daily basis to a Synology NAS. I've found this tutorial: Automatic Nightly Backups for Your Android Device to Your Computer | Guysoft's…
Nick
  • 141
  • 2
3
votes
0 answers

Unable to mount a block partition from Windows to Android device

I am not able to mount an image over a network onto my Android device. I tried to pull the userdata partition onto my Windows using: adb pull /dev/block/mm..0p29 userdata.img Now, I am trying to mount this image on some other Android device over…
Lavyansi
  • 89
  • 2
3
votes
1 answer

How can I see my NFS share in any file manager on Android 6.0.1?

I mounted my NFS shares successfully in Termux with busybox. I mounted the network folder to /data/media/0/Music. I'm also able to see the content of the network share in the terminal with ls -l /data/media/0/Music. But when I click the location in…
AndRoot
  • 51
  • 1
  • 3
3
votes
1 answer

Mounting cifs/samba volume as a directory in android

I'm using a custom rom based on cyanogenmod 13, my device is rooted and I have Xposed installed. I'm looking for a simple app to mount samba or cifs volume in a directory on my android devices, years ago I used Cifs Manager and Mount Manager but it…
Andrea Ciceri
  • 133
  • 1
  • 1
  • 5
3
votes
1 answer

How to share android directories over LAN using SMB protocol

I want my hone to be used as network drive, by sharing folders over network. So that I can access it from My windows PC. I want to use SMA protocol for that. I am using OnePlus One, CM12.1 OS with ES file explorer.
See-Sharp
  • 418
  • 1
  • 4
  • 11
2
votes
1 answer

VLC for Android: No connection to local network

All of a sudden, my VLC for Android app just up and stopped showing the local LAN network shares which are Samba running on a Xubuntu 20.04 host. I have no clue to what caused this. I have verified that the share is indeed shared via this on that…
bgoodr
  • 440
  • 6
  • 18
2
votes
0 answers

CIFS mount SMB into a folder results in "no such device" error on Android 10 Lineageos 17.1 and stock Google Pixel

I've tried these commands with root access mount -t fifs //192.168.62.118/xyz -o username=user,password=pw /mnt/sdcard/xyz mount -t cifs //192.168.62.118/xyz -o username=user,password=pw /mnt/sdcard/xyz mount iocharset=utf8 -t cifs -o…
2
votes
0 answers

How to mount an SMB share as a removable media?

Is it possible to mount an SMB share to a folder that Android thinks is a removable media (external SD card or USB storage)? Currently. I am using the following command to mount the share to Android's filesystem (I should mention that it doesn't…
mnd
  • 191
  • 2
  • 15
2
votes
1 answer

Streaming audio files from SMB (or AFP, or NFS) share to DLNA receiver without resampling

Is it possible to scan specific folders for music files and import them to some android media player app, which could then stream the music to a DLNA device? Another challenge is that the music files are on a NAS device, so they would be accessed…
mnd
  • 191
  • 2
  • 15
1
vote
1 answer

Access Windows admin share from Android?

I have tested several Android apps and none of them seem to be able to do what I want. How do I access admin shares such as \\host\c$ from Android? Note that admin share access is enabled on the host and I can in fact access it from another Windows…
Samir
  • 1,405
  • 16
  • 36
  • 48
1
2