Operating System - HP-UX
1753995 Members
8220 Online
108811 Solutions
New Discussion юеВ

CIFS Permission denied in a fs mounted via Samba

 

CIFS Permission denied in a fs mounted via Samba

hi, I've mounted a file system share from windows 2003.
On hpux 11.31 I've configured the user, and set the domain name /etc/opt/cifsclient/cifsclient.cfg started the cifs clienand mounted is with success:
secdr09:/# cifsmount -U eticunix //fsa.ihsr.dom/etichettesio$ /etichette
secdr09:/# bdf
fsa.ihsr.dom:/etichettesio$
953152480 598624912 354527568 63% /etichette

BUT when I try to access the file system with the user account I receives "Permission denied" error
secdr09:/# su - eticunix
...
$ id
uid=116(eticunix) gid=20(users)
$ cd /etichette
sh: /etichette: Permission denied.

the permissions already are 777
secdr09:/# ll -d /etichette
drwxrwxrwx 2 root sys 131072 Oct 28 19:11 /etichette

Obviously the /etichette is reachable using root user.
do you have any idea? May a file system be accessed from a user different from root?
thanks
Alessandro
Vigno
4 REPLIES 4
vishnu.khandare
Respected Contributor

Re: CIFS Permission denied in a fs mounted via Samba

Hi,

Whats the OS? Version?
on which file ur changing the permission?


Regards
Vishnu Khandare
You should deserve before U desire!!!!

Re: CIFS Permission denied in a fs mounted via Samba


hi,
client cifs is HP-UX B.11.31 ia64

The mount point created on the unix server [cifs client] has 777 permission:
secdr09:/# ll -d /etichette/
drwxrwxrwx 2 root sys 131072 Oct 28 19:27 /etichette/

cifs version
secdr09:/# swlist -l product|grep -i cif
CIFS-CFSM A.02.03.02 HP CIFS File System Module
CIFS-Client A.02.02.01 HP CIFS Client
CIFS-Development A.02.03.02 HP CIFS Server Source Code Files
CIFS-Server A.02.03.02 HP CIFS Server (Samba) File and Print Services
Vigno
Steven E. Protter
Exalted Contributor

Re: CIFS Permission denied in a fs mounted via Samba

Shalom,

The cifs client might be in need of an update.


what is the security = setting in smb.conf

Also to properly add samba users, I usually:

1) Make sure there is an OS user.
2) smbpasswd -a

That applies to security=user

If security is set to domain or ads, then preparation on the ADS/Windows side may be required.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: CIFS Permission denied in a fs mounted via Samba

hi Sep,
the security setting = ads, I added the eticunix user [the one that I using to access to the directory], but the effect is the same "permission denied". Maybe should I have to check the windows point of view?
Alex
Vigno