user can't write on cifs share but OK with Windows Explorer


 
Thread Tools Search this Thread
Operating Systems HP-UX user can't write on cifs share but OK with Windows Explorer
# 1  
Old 02-10-2011
user can't write on cifs share but OK with Windows Explorer

Share ServerA
==== The Samba server is running on Samba version 3.0.22 based HP CIFS Server A.02.03.04
/opt/cifsclient/sbin/cifsclientd version: HP CIFS Client - Version A.02.02.02 smb file: [global]
My previous casw was thew user wasn't able to write to the share from Windows Explorer. After giving the permissions 777 on the share, it FIXED the problem with WRITE permission.
ServerB
Now the problem is with the access and write to the share at UNIX level from remote mounpoint. i create direcotry for mounpoint on serverB and run command as follow:
#mkdir /export/cartsshare/cartstage
#cifsmount //onottaafccifs/carts /export/cartsshare/cartstage -U dbashare -P password -s (run as root)
----
permission before mounting:
drwxrwxr-x 2 cartsprd oradba 96 Feb 10 14:10 cartstage
Now
su - user that want to access the share. This user is already part of oradba group.
cd /export/cartsshare/cartstage
sh: /export/cartsshare/cartstage: Permission denied.
---
permission after mounted:
drwxrwxrwx 2 root sys 131072 Feb 10 14:23 cartstage
How comes that the ownership has changed after mounting. why the user can't write to this file system>
# 2  
Old 03-31-2011
Quote:
Originally Posted by lamoul
permission before mounting:
drwxrwxr-x 2 cartsprd oradba 96 Feb 10 14:10 cartstage
Now
su - user that want to access the share. This user is already part of oradba group.
cd /export/cartsshare/cartstage
sh: /export/cartsshare/cartstage: Permission denied.
---
permission after mounted:
drwxrwxrwx 2 root sys 131072 Feb 10 14:23 cartstage
How comes that the ownership has changed after mounting. why the user can't write to this file system>
Permission before mounting the share is the permissions and ownership for the local directory (which you use for mountpoint) and permissions after mounting, is the permissions for the filesystem mounted, since it overlays the mountpoint.

Think of it like this (not a perfect analogy but the reason why it happens could be a little more clear)

Assume you are root:

mkdir /newdir
chown devuser:developer /newdir
touch /newdir/file1
touch /newdir/file2
ls /newdir
file1 file2

so far are we good ? Then mount a filesystem on this /newdir mount point:

mount /dev/vg00/lvol15 /newdir
ls /newdir


do you still see file1 and file2 ?
No !
They are still on the disk, but overlayed by the new filesystem. And the ownership and permissions of the /newdir has been converted to those of the lvol15, from the previous mount time of this volume.

Makes sense ?

Why can't the users write on it ? Samba (a.k.a. CIFS) is a strange animal when it comes to unix permissions vs Samba permissions and I do not have enough expertise on Samba side. But I know for a fact that 777 permissions on UNIX level means nothing if Samba permissions (usually set by an AD or LDAP server) are not set for the user to write to this directory level.

Good luck.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Unable to access the CIFS share folder on windows by IP

Hi All Actually I have NAS Storage and Suddenly I got problem Unable to access the CIFS share folder on windows host, however the IP is pinging and the share is accessible via share name. The share can be accessed via share name only on Windows higher Windows Versions. Any help guys (4 Replies)
Discussion started by: Abu_SM
4 Replies

2. Red Hat

CIFS share re-export NFS

Hi Guys, need help here. i have windows server that share a folder C:/ABCDE i configure samba client in Linux server as /EDCBA and it working fine. then i want to share this /EDCBA to another Linux server using NFS. in the /etc/exportfs i have put /EDCBA - *(rw,no_root_squash) ... (1 Reply)
Discussion started by: prossits
1 Replies

3. AIX

I/O speed to CIFS mounted Windows Share

I have an AIX box that mounts a Windows share across subnets. When I try to copy a 100 MB file to it, it copies around 2 MB/s. If I copy to another Windows share on the same subnet it copies around 12 MB/s. All I have is gigabit networks so I would expect it to go well over 12 MB/s, which is the... (8 Replies)
Discussion started by: kah00na
8 Replies

4. UNIX for Dummies Questions & Answers

Mounting a standard user, windows share at login

I know how to mount my share via /etc/fstab automatically when the system boots but since I do not have root permission to access the /etc/fstab nor do I think that the system admin wants me to add an entry in /etc/fstab all together. So what file could I add my mount entry in? mount -t cifs... (8 Replies)
Discussion started by: metallica1973
8 Replies

5. Solaris

Can't connect to CIFS share

Hello guys, as of recently I'm unable to connect to one of my CIFS shares and I've no clue why that may be. As you can see in the first attachment a connection attempt to tony prompts for user credentials but when I try to connect to Videos it claims not being able to find the resource which is... (1 Reply)
Discussion started by: Tony~
1 Replies

6. AIX

AIX cifs: mount Windows Server 2008 share ?

Hello, I've been using AIX cifs to mount windows XP shares with no problems till now. Now it's Windows Server 2008 R2 - no go: mount -v cifs -n host1/user1/pass1 /share1 /mountpt1 There was an error connecting the share or the server. Make sure the lsdev command shows that device nsmb0 is in... (6 Replies)
Discussion started by: vilius
6 Replies

7. Shell Programming and Scripting

Script to copy User home folders to mounted windows share

First of all, let me state that I am a windows admin. I have a windows share mounted to /mnt/server I need a script that will either login as sudo or perform commands with sudo rights. I need the script to copy all of the users /home folders to the mounted windows share. Now If I can... (7 Replies)
Discussion started by: EricM
7 Replies

8. 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

9. Solaris

Mounting CIFS share

Is it possible to mount a samba share on a solaris system? I know this is possible with Linux using a fstype of smbfs. I am trying to aviod having to share the same directories via cifs and nfs on a solaris box to windows and solaris clients. (3 Replies)
Discussion started by: mhm4
3 Replies

10. AIX

write syslog to windows share

hello, we are currently experimenting with writing syslog files out to a windows share. I am able to successfully mount the share with mount -v cifs ... and can navigate into the mount point and create/edit files as necessary. However, the syslog will not write out to this mount point. any ideas... (4 Replies)
Discussion started by: zuessh
4 Replies
Login or Register to Ask a Question