Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Netapp: toasters

nfs: cannot create regular file : Premission denied

 

 

Netapp toasters RSS feed   Index | Next | Previous | View Threaded


kwang at esri

Apr 9, 2012, 11:18 AM

Post #1 of 4 (1925 views)
Permalink
nfs: cannot create regular file : Premission denied

Hi,
I am a Unix administrator, new to Netapp. We have an IBM N6240 running data ontap 8.0.2p3. I created an nfs share on the netapp with rw and root access by an Ubuntu linux (10.4). I got a very weird permission issue.

>From FilerView:
/vol/napc2_p2_kk1 Read-Write Access (10.49.51.119)
Root Access (10.49.51.119)
Security (sys)

On Ubuntu Linux:
root [at] arsena:~# df -k /kingkong/
Filesystem 1K-blocks Used Available Use% Mounted on
red-str-napc2v49-p2:/vol/napc2_p2_kk1
8589934592 4266101440 4323833152 50% /kingkong
root [at] arsena:~# ls -ld /kingkong
drwxrwxrwx 4 root root 4096 2012-04-09 10:15 /kingkong

When I copy files, I got thses errors:
root [at] arsena:/data1# cp -r test1 /kingkong
cp: cannot create regular file `/kingkong/test1/test2/afg/po_533107/po_533107_0000000/po_533107_nir_0000000.tfw': Permission denied
cp: cannot create regular file `/kingkong/test1/test2/afg/po_533107/po_533107_0000000/po_533107_blu_0000000.tif': Permission denied
..
..

"ls" shows me the file name have been created but data size is 0.
root [at] arsena:/data1# ls -l /kingkong/test1/test2/afg/po_533107/po_533107_0000000/
total 0
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.dbf
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.prj
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.shp
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.shx
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000.hdr
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000_rpc.txt
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000.tfw
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000.tif
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.dbf
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.prj
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.shp
-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.shx

If I do it again, no error. Everything looks fine after copy.
root [at] arsena:/data1# cp -r test1 /kingkong
root [at] arsena:/data1# ls -l /kingkong/test1/test2/afg/po_533107/po_533107_0000000/
total 390576
-rwxrwxrwx 1 root root 639 2012-04-09 10:58 po_533107_aoi.dbf
-rwxrwxrwx 1 root root 143 2012-04-09 10:58 po_533107_aoi.prj
-rwxrwxrwx 1 root root 236 2012-04-09 10:58 po_533107_aoi.shp
-rwxrwxrwx 1 root root 108 2012-04-09 10:58 po_533107_aoi.shx
-rwxrwxrwx 1 root root 445 2012-04-09 10:58 po_533107_blu_0000000.hdr
-rwxrwxrwx 1 root root 3770 2012-04-09 10:57 po_533107_blu_0000000_rpc.txt
-rwxrwxrwx 1 root root 74 2012-04-09 10:58 po_533107_blu_0000000.tfw
-rwxrwxrwx 1 root root 19908262 2012-04-09 10:57 po_533107_blu_0000000.tif

Can somebody help me to find out what is going wrong?

Thanks
Koping


netbacker at gmail

Apr 9, 2012, 11:33 AM

Post #2 of 4 (1768 views)
Permalink
Re: nfs: cannot create regular file : Premission denied [In reply to]

On Mon, Apr 9, 2012 at 11:18 AM, Koping Wang <kwang [at] esri> wrote:
> Hi,
>
> I am a Unix administrator, new to Netapp. We have an IBM N6240 running data
> ontap 8.0.2p3. I created an nfs share on the netapp with rw and root access
> by an Ubuntu linux (10.4). I got a very weird permission issue.
>

Check the volume/qtree security settings. Could be that it has NTFS
permissions instead of Unix.
Run " qtree security /vol/napc2_p2_kk1" to check and set accordingly
-n
_______________________________________________
Toasters mailing list
Toasters [at] teaparty
http://www.teaparty.net/mailman/listinfo/toasters


chaim.rieger at gmail

Apr 9, 2012, 12:18 PM

Post #3 of 4 (1781 views)
Permalink
Re: nfs: cannot create regular file : Premission denied [In reply to]

Check security style
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Koping Wang <kwang [at] esri> wrote:

Hi,

I am a Unix administrator, new to Netapp. We have an IBM N6240 running data ontap 8.0.2p3. I created an nfs share on the netapp with rw and root access by an Ubuntu linux (10.4). I got a very weird permission issue.



>From FilerView:

/vol/napc2_p2_kk1 Read-Write Access (10.49.51.119)

Root Access (10.49.51.119)

Security (sys)



On Ubuntu Linux:

root [at] arsena:~# df -k /kingkong/

Filesystem 1K-blocks Used Available Use% Mounted on

red-str-napc2v49-p2:/vol/napc2_p2_kk1

8589934592 4266101440 4323833152 50% /kingkong

root [at] arsena:~# ls -ld /kingkong

drwxrwxrwx 4 root root 4096 2012-04-09 10:15 /kingkong



When I copy files, I got thses errors:

root [at] arsena:/data1# cp -r test1 /kingkong

cp: cannot create regular file `/kingkong/test1/test2/afg/po_533107/po_533107_0000000/po_533107_nir_0000000.tfw': Permission denied

cp: cannot create regular file `/kingkong/test1/test2/afg/po_533107/po_533107_0000000/po_533107_blu_0000000.tif': Permission denied

..

..



“ls” shows me the file name have been created but data size is 0.

root [at] arsena:/data1# ls -l /kingkong/test1/test2/afg/po_533107/po_533107_0000000/

total 0

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.dbf

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.prj

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.shp

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_aoi.shx

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000.hdr

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000_rpc.txt

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000.tfw

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_blu_0000000.tif

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.dbf

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.prj

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.shp

-rwxrwxrwx 1 root root 0 2012-04-09 10:51 po_533107_component.shx



If I do it again, no error. Everything looks fine after copy.

root [at] arsena:/data1# cp -r test1 /kingkong

root [at] arsena:/data1# ls -l /kingkong/test1/test2/afg/po_533107/po_533107_0000000/

total 390576

-rwxrwxrwx 1 root root 639 2012-04-09 10:58 po_533107_aoi.dbf

-rwxrwxrwx 1 root root 143 2012-04-09 10:58 po_533107_aoi.prj

-rwxrwxrwx 1 root root 236 2012-04-09 10:58 po_533107_aoi.shp

-rwxrwxrwx 1 root root 108 2012-04-09 10:58 po_533107_aoi.shx

-rwxrwxrwx 1 root root 445 2012-04-09 10:58 po_533107_blu_0000000.hdr

-rwxrwxrwx 1 root root 3770 2012-04-09 10:57 po_533107_blu_0000000_rpc.txt

-rwxrwxrwx 1 root root 74 2012-04-09 10:58 po_533107_blu_0000000.tfw

-rwxrwxrwx 1 root root 19908262 2012-04-09 10:57 po_533107_blu_0000000.tif



Can somebody help me to find out what is going wrong?



Thanks

Koping


kwang at esri

Apr 9, 2012, 4:01 PM

Post #4 of 4 (1757 views)
Permalink
RE: nfs: cannot create regular file : Premission denied [In reply to]

Thanks, this helps.

Koping

-----Original Message-----
From: Sto Rage(c) [mailto:netbacker [at] gmail]
Sent: Monday, April 09, 2012 11:34 AM
To: Koping Wang
Cc: toasters [at] teaparty
Subject: Re: nfs: cannot create regular file : Premission denied

On Mon, Apr 9, 2012 at 11:18 AM, Koping Wang <kwang [at] esri> wrote:
> Hi,
>
> I am a Unix administrator, new to Netapp. We have an IBM N6240 running
> data ontap 8.0.2p3. I created an nfs share on the netapp with rw and
> root access by an Ubuntu linux (10.4). I got a very weird permission issue.
>

Check the volume/qtree security settings. Could be that it has NTFS permissions instead of Unix.
Run " qtree security /vol/napc2_p2_kk1" to check and set accordingly -n


_______________________________________________
Toasters mailing list
Toasters [at] teaparty
http://www.teaparty.net/mailman/listinfo/toasters

Netapp toasters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.