LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-17-2007, 01:16 AM   #1
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Rep: Reputation: 0
'permission denied" inspite of right permission flags on network drive


hi,
when i logon to my computer,i end up in my home folder on a network drive.this is what ls gives
Code:
drwxrwxrwx  16 root bin 4096 May 17 02:13 vija
when i try to decompress a gzipped archive i get,

Code:
[vija@localhost ~]$ gzip -d InsightToolkit-3.2.0.tar.gz
gzip: InsightToolkit-3.2.0.tar: Operation not permitted
there is a .tar file,but it is of 0 bytes.creating a file with vi works
ls -l on the original file gives
Code:
-rwxrwxrwx  1 vija anonymous 27625097 May 17 02:12 InsightToolkit-3.2.0.tar.gz
gzip version is 1.3.3,tar version is 1.14.sysytem is fedora core 4.
 
Old 05-17-2007, 02:08 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
# chmod 0777 InsightToolkit-3.2.0.tar.gz
# chgrp vija InsightToolkit-3.2.0.tar.gz

... try again. But use tar instead of gzip.

$ tar -xvzf InsightToolkit-3.2.0.tar.gz
 
Old 05-17-2007, 02:51 AM   #3
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Original Poster
Rep: Reputation: 0
chmod gives "operation not permitted"
the network drive is 91% used as per 'df'.
i have write permissions to /tmp.temporarily using this to work,and then doing a cp to my home folder.
but why does'nt a write work even if permissions are rwx

doing a
Code:
gzip -d InsightToolkit-4.2.0.tar.gz
gives 'operation not permitted' ,and a "InsightToolkit-4.2.0.tar" file of size 0 bytes is created.


Code:
[vija@localhost ~/Desktop]$ ls -l
total 38656
-rwxrwxrwx  1 vija xyz 11870068 May 17 01:22 CableSwig-ITK-3.2.0.tar.gz
-rwsrwsrwx  1 vija xyz        0 May 17 03:47 InsightToolkit-4.2.0.tar
-rwxrwxrwx  1 vija xyz 27625097 May 17 03:40 InsightToolkit-4.2.0.tar.gz
there is a 's' in place of 'x' in the failed gzip -d effort.should that be there?
 
Old 05-17-2007, 03:00 AM   #4
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Original Poster
Rep: Reputation: 0
hi,
even vi is unable to do anything

for eg:

Code:
vi try
gives:
Code:
E325: ATTENTION
Found a swap file by the name ".try.swp"
          owned by: vija   dated: Thu May 17 03:56:48 2007
         [cannot be read]
While opening file "try"

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r try"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".try.swp"
    to avoid this message.
"try" [New File]
Hit ENTER or type command to continue
this happens on creating any new files
but a 'touch' works:
Code:
touch test
-rwxrwxrwx  1 vija xyz    0 May 17 03:59 test
if the drive is not writable,why is the touch succeeding?
 
Old 05-17-2007, 03:56 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
touch dummy
vi dummy

check how the network partition is mounted.
(i.e. in fstab ?)
 
Old 05-17-2007, 04:09 AM   #6
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Original Poster
Rep: Reputation: 0
there is no entry regarding the network drive in /etc/fstab
however the following line exists in /etc/mtab

Code:
<server-name>:/vol/vol6/xyz/abc /home/vija nfs rw,hard,intr,grpid,addr=3.212.229.83 0 0
Right now i am compiling my programs in /tmp/work,and then doing a :

Code:
cp -rv /tmp/work /home/vija/work
Strangely this works properly.

p.s.:Thanks for your advice on the previous thread.Appreciate it a lot.
 
Old 05-17-2007, 07:17 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Odd... You need to talk to the sysadmin.

Did you try:

touch dummy
vi dummy

...or maybe it is vi, and you should use emacs <ducks>

Last edited by Simon Bridge; 05-17-2007 at 07:18 PM.
 
Old 05-22-2007, 02:17 AM   #8
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Original Poster
Rep: Reputation: 0
chmod:Operation not permitted

hi,
I've isolated the problem.It relates to chmod failure on directories.The best way to put this is to paste the terminal output.
Code:
ls -l
total 4
drwxrwxrwx  2 vija xyz 4096 May 22 03:11 FL
-rwx--x--x  1 vija xyz    0 May 22 03:09 lal
vija@localhost include> chmod 700 FL/
chmod: changing permissions of `FL/': Operation not permitted
vija@localhost include> chmod 700 lal
chmod seems to be allowed on files,but not on directories.Does this make any sense?
 
Old 05-22-2007, 05:57 AM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You don't have the ability to alter permissions on directories on network drives ... did you discuss this with sysadmin?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
'Permission denied' for cdrom drive but not cdwriter. mazinoz Red Hat 2 09-05-2006 06:52 PM
cd drive: permission denied aje Slackware 5 11-11-2004 08:50 PM
Permission denied to drive when mounted at boot wr3ck3d Linux - General 2 12-30-2003 03:38 AM
"permission denied" when I try to send raw data to the sound device. Travis86 Linux - Hardware 2 10-29-2003 09:08 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration