UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 13th, 2005, 02:59 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
tar strange behavior

OS: solaris5.8
as root i mount the cd

mount -F hsfs -o ro /dev/dsk/c0t6d0s0 /cdrom

it's OK, all dirs have 755, all files 644 permissions
as normal user i exec

mkdir -p /aa/bb/cc/dd

a ls -ld /aa/bb/cc/dd confirm permissions 755 owned by me
now i cd to /cdrom and try to copy . to /aa/bb/cc/dd using

tar cfb - 126k . ¦ (cd /aa/bb/cc/dd ; tar xfpv -)

permission denied error messages

a ls -ld /aa/bb/cc/dd show permissions 555

the dir is no longer writable

$PATH is correct, tar is /bin/tar and cd is NOT an alias
i never saw this before.
any ideas? tia

Reply With Quote
  #2  
Old January 16th, 2005, 06:02 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
all on holidays ?

Reply With Quote
  #3  
Old January 19th, 2005, 08:22 PM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
First I would try it without the blocking factor. I thought both tar's need to know about the blocking factor. And using a large blocking factor across a pipe doesn't seem to make sense. If that still fails I would suspect a bad version of tar and switch to cpio or pax. You might check for any patches to your version of sunos.

Reply With Quote
  #4  
Old January 27th, 2005, 09:54 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
sorry Perderabo for late reply
NO
i use the tar blocking factort since 1991
that's sure not the point
Quote:
And using a large blocking factor across a pipe doesn't seem to make sense

try it!

Reply With Quote
  #5  
Old January 28th, 2005, 12:55 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
Whenever tar is piped - at least for the version I have from 1997 82.4.1.6 hpux -
it uses a blocking factor of 1.

I am given to believe the same is true with linux flavors of tar.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > tar strange behavior


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway