Sponsored Content
Full Discussion: CIFS on linux ?
Operating Systems Linux CIFS on linux ? Post 302122607 by the_learner on Wednesday 20th of June 2007 08:40:29 PM
Old 06-20-2007
CIFS on linux ?

I have a program which reads all the files in a path given as argument into a buffer (And does something with it). The program makes use of several file processing APIs such as: stat(), fopen(), read() etc..

Now, it is possible that the directory specified by the path is actually a volume which is nfs mounted from a filer. Now, as far as I can tell it does not make any difference to the program whether the path contains files that are local to the client or if it is nfs mounted from the filer.

What I want to know is whether the program will work if CIFS (or SMBFS) was used to mount the volume. (or any other protocol other than NFS)


(I thought cifs was only for windows, but turns out you can use cifs to mount a volume on a linux machine, I tried using cifs to mount the volume but my kernel does not support it.

% r mount -t cifs sys1:/vol/vol1 ~/dir1
mount: fs type cifs not supported by kernel)

)
 

10 More Discussions You Might Find Interesting

1. AIX

share with cifs

Im trying to share a directory with cifs my aix box with a windows server. but when I try to mount mount -v cifs -n 172.19.90.240/suc_user/tommy /directory /directory1/directory1 I got this error There was an error connecting the share or the server. Make sure the lsdev command shows that... (1 Reply)
Discussion started by: lo-lp-kl
1 Replies

2. Shell Programming and Scripting

Cifs + 2 gb

Hi all, I am using script to take mysql database backup... its arrround 12 GB ...... I have used tar -a , cp -a and rsync -a to take backup on CIFS mounted drive but it fails to take backup more than 2 GB as well as not able to take backup with ownership,timestamps. Conf files... (3 Replies)
Discussion started by: jagnikam
3 Replies

3. HP-UX

mount with CIFS

hi everyone months ago i installed software on hp-ux box. So instead of going to the server room (which is far and cold :) ), I put the DVD in my windows xp box and mount it using CIFS, it was successful. Now I want to install another software on the same hp-ux box using the same windows... (3 Replies)
Discussion started by: neemoze
3 Replies

4. OS X (Apple)

OS X - cifs - What's Up?

Can all you OS X xperts help me? OS X Leopard 10.5.6: mount -t cifs -o username=name,password=secret //server/share /mnt/dir Works from every linux box I have ever used. This does not work from the OS X terminal. Why? The gui/finder/go: cifs://server/share just works... command line... (2 Replies)
Discussion started by: cjohnsoia
2 Replies

5. AIX

cifs

Hi, I want to access windows folder from aix and viceversa. Is it possible to do that? I came to know we can do that from cifs but when tried to install cifs.base.cmd 3.2.1.0 cifs.base.lic 3.2.1.0 cifs.base.smit 3.2.1.0 cifs.basic.rte 3.2.1.0 cifs.client.rte 3.2.1.0 cifs.websm.apps 3.2.1.0... (4 Replies)
Discussion started by: vjm
4 Replies

6. AIX

mounting cifs

Dear All, I mounted a windows share on AIX 5.3. with cifs. The write on it is much slower than from other windows clients. Could you help me with any tricks to speed the writing process? Thanks, Zoltán Patalenszki (0 Replies)
Discussion started by: zoltanp
0 Replies

7. Windows & DOS: Issues & Discussions

Linux mount cifs with Windows ACL support

I'm in the process of migrating my windows file servers to a Ubuntu Samba server. My plan is to use cp -Rp to copy all the mounted files to the proper directory on my Ubuntu server. I can mount them just fine but if I run getfacl against a mounted directory its not showing any of my Windows... (0 Replies)
Discussion started by: binary-ninja
0 Replies

8. UNIX for Dummies Questions & Answers

Umount CIFS

hi guys I have to umount a CIFS from a Windows machine...but it's been imposible there is one special task /sbin/umount.cifs /mondobackup that task cannot be kill...so I cannot umount the unit any idea how to kill this and umount this CIFS share? by the way I've tried umount... (5 Replies)
Discussion started by: kopper
5 Replies

9. Shell Programming and Scripting

Directory / File changes on CIFS share mounted on Red Hat Linux

I have a requirement to copy the changed file on CIFS share mounted on Red Hat Linux to a remote FTP/SFTP server. I tried inotify-tools, but this didn't track the modified files. Has anyone tried incron or any other suggestion? (1 Reply)
Discussion started by: SupeAlok
1 Replies

10. UNIX for Dummies Questions & Answers

unable to automount a cifs drive in linux

Hi I am using SUSE 11 linux I have couple of "nfs" entries in /etc/fstab which are automatically loaded after system restart. One of the entry is windows drive mounted using cifs as shown below //IP-Address/Partition /mnt/x cifs credentials=/creds/.creds,rw,uid=<name> 0 0 I want to... (1 Reply)
Discussion started by: rakeshkumar
1 Replies
CIFS.UPCALL(8)						    System Administration tools 					    CIFS.UPCALL(8)

NAME
cifs.upcall - Userspace upcall helper for Common Internet File System (CIFS) SYNOPSIS
cifs.upcall [--trust-dns|-t] [--version|-v] {keyid} DESCRIPTION
This tool is part of the cifs-utils suite. cifs.upcall is a userspace helper program for the linux CIFS client filesystem. There are a number of activities that the kernel cannot easily do itself. This program is a callout program that does these things for the kernel and then returns the result. cifs.upcall is generally intended to be run when the kernel calls request-key(8) for a particular key type. While it can be run directly from the command-line, it's not generally intended to be run that way. OPTIONS
-c This option is deprecated and is currently ignored. --trust-dns|-t With krb5 upcalls, the name used as the host portion of the service principal defaults to the hostname portion of the UNC. This option allows the upcall program to reverse resolve the network address of the server in order to get the hostname. This is less secure than not trusting DNS. When using this option, it's possible that an attacker could get control of DNS and trick the client into mounting a different server altogether. It's preferable to instead add server principals to the KDC for every possible hostname, but this option exists for cases where that isn't possible. The default is to not trust reverse hostname lookups in this fashion. --version|-v Print version number and exit. CONFIGURATION FOR KEYCTL
cifs.upcall is designed to be called from the kernel via the request-key callout program. This requires that request-key be told where and how to call this program. The current cifs.upcall program handles two different key types: cifs.spnego This keytype is for retrieving kerberos session keys dns_resolver This key type is for resolving hostnames into IP addresses To make this program useful for CIFS, you'll need to set up entries for them in request-key.conf(5). Here's an example of an entry for each key type: #OPERATION TYPE D C PROGRAM ARG1 ARG2... #========= ============= = = ================================ create cifs.spnego * * /usr/local/sbin/cifs.upcall %k create dns_resolver * * /usr/local/sbin/cifs.upcall %k See request-key.conf5() for more info on each field. SEE ALSO
request-key.conf(5), mount.cifs(8) AUTHOR
Igor Mammedov wrote the cifs.upcall program. Jeff Layton authored this manpage. The maintainer of the Linux CIFS VFS is Steve French. The Linux CIFS Mailing list is the preferred place to ask questions regarding these programs. cifs-utils 4.0 02/07/2010 CIFS.UPCALL(8)
All times are GMT -4. The time now is 02:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy