Issue with mounts CIFS | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Issue with mounts CIFS

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-15-2013
Tirmazi's Avatar
Tirmazi Tirmazi is offline
Registered User
 
Join Date: Apr 2008
Last Activity: 20 February 2013, 4:03 PM EST
Location: Maryland, USA
Posts: 82
Thanks: 26
Thanked 1 Time in 1 Post
Issue with mounts CIFS

I donot know much about CIFS but i have been asked to look into an issue related to mounting CIFS filesystem

On my redhat 5.6 the /etc/fstab file has the following entry

HTML Code:
//172.25.x.x/de0/ /dir1/de0 cifs username=bodsadm,password=12345,dir_mode=0777,file_mode=0777,uid=de0adm,gid=sapsys,rw 0 0
But when the directory is listed it appears as
HTML Code:
dr-xr-xr-x 1 de0adm sapsys 28672 Feb 15 14:15 /dir1/de0
Secondly when i su as de0adm and cd to /dir1/de0 it does not allow me to create a file in this directory. It complains with "permission denied"

Any suggestions will be appreciated
Sponsored Links
    #2  
Old 03-08-2013
verdepollo's Avatar
verdepollo verdepollo is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 27 August 2014, 10:55 AM EDT
Location: Mexico
Posts: 725
Thanks: 11
Thanked 105 Times in 101 Posts
Quote:
Originally Posted by Tirmazi View Post
But when the directory is listed it appears as
HTML Code:
dr-xr-xr-x 1 de0adm sapsys 28672 Feb 15 14:15 /dir1/de0
I don't see anything wrong with that; what were you expecting it to show?

Quote:
It complains with "permission denied"
Of course it does, the directory doesn't have write permissions.

Try adding "noperm" to the mount options or use ACLs (cifsacl).

You might as well verify the permissions in the source server (172.25.x.x).
Sponsored Links
    #3  
Old 03-08-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 29 August 2014, 3:14 PM EDT
Location: Saskatchewan
Posts: 19,271
Thanks: 774
Thanked 3,236 Times in 3,034 Posts
From man mount.cifs:


Code:
       dir_mode=arg
           If the server does not support the CIFS Unix extensions this
           overrides the default mode for directories.

Perhaps the target does support the CIFS unix extensions...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cifs.upcall issue, requests new kerberos service ticket all the time thmnetwork Linux 0 04-10-2012 03:58 PM
How to check NAS mounts being used ? greencored Solaris 1 09-17-2010 07:03 PM
Mounts krisdasword UNIX for Dummies Questions & Answers 1 06-23-2008 12:54 AM
Combining Mounts seemit AIX 0 06-19-2008 05:31 PM
new mounts rags_s11 Solaris 3 06-15-2008 06:40 AM



All times are GMT -4. The time now is 04:08 PM.