Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-17-2007, 01:16 AM
|
#1
|
LQ Newbie
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15
Rep:
|
'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.
|
|
|
05-17-2007, 02:08 AM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
# 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
|
|
|
05-17-2007, 02:51 AM
|
#3
|
LQ Newbie
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15
Original Poster
Rep:
|
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?
|
|
|
05-17-2007, 03:00 AM
|
#4
|
LQ Newbie
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15
Original Poster
Rep:
|
hi,
even vi is unable to do anything
for eg:
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?
|
|
|
05-17-2007, 03:56 AM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
touch dummy
vi dummy
check how the network partition is mounted.
(i.e. in fstab ?)
|
|
|
05-17-2007, 04:09 AM
|
#6
|
LQ Newbie
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
05-17-2007, 07:17 PM
|
#7
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
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.
|
|
|
05-22-2007, 02:17 AM
|
#8
|
LQ Newbie
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15
Original Poster
Rep:
|
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?
|
|
|
05-22-2007, 05:57 AM
|
#9
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
You don't have the ability to alter permissions on directories on network drives ... did you discuss this with sysadmin?
|
|
|
All times are GMT -5. The time now is 03:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|