Unknown fs on usb?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unknown fs on usb?
# 15  
Old 02-05-2015
Gents, sorry for the misunderstanding, I use this for archives, not for the complete partition or machine.
Code:
find /media/usb0/sounds5 -type f -exec chmod 777 {} +

Could be as well

Code:
find /media/usb0/sounds5 -type d -exec chmod 777 {} +

for directories. I did not intend to spread any bad commands. And changing the magic sledgehammer to 750.
# 16  
Old 02-05-2015
Quote:
Originally Posted by 1in10
Gents, sorry for the misunderstanding, I use this for archives, not for the complete partition or machine.
Code:
find /media/usb0/sounds5 -type f -exec chmod 777 {} +

That's even worse. All setting a folder executable does is let you cd into it, but doing that to files sets them all as world-writable, executable programs. Wrong and dangerous! Try 640. Better yet, find out what these numbers mean (man chmod) and plan ahead.
# 17  
Old 02-06-2015
10644 or 640 is just what I did not wanted. And yes, I read the man pages for chmod before, not only the man pages, but more about this. That is why I came to the conclusion of the other values, they serve better for my purposes. As using only my machinery, how it comes that there is such a worry about user rights for files of a backup media. Okay, before starting another discussion let it stay like this. Beeing well aware of 755, 750, 644 and others.
# 18  
Old 02-08-2015
Quote:
Originally Posted by 1in10
As using only my machinery, how it comes that there is such a worry about user rights for files of a backup media.
If you're tapdancing blindfolded, don't set out minefields for yourself. You're going to get tripped by the mess you have made eventually.

Besides which, many programs care about the permissions of certain files, too. By changing everything, you have made your backups useless in a few important ways.

I am closing this thread before you can fill it with more very horrible advice.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unknown command '\;'

Hello, I am running ubuntu 16.04 . Below script gives: "unknown command '\;' counter=105 while read COL1 COL2 COL3 do let counter++ url="http://localhost/test/$COL1.$COL2.$COL3"; mysql -uroot -D mydatabase -pmypasswd -e "SELECT video_id FROM video_series_files WHERE id IN \ (SELECT... (12 Replies)
Discussion started by: baris35
12 Replies

2. Solaris

Unknown fstype?

Dear all I have formatted/labeled/partitioned my new disk but when trying to mount it is returning 'unknown fstype' .Can you please let me know how to solve this problem? Thank you (37 Replies)
Discussion started by: hadimotamedi
37 Replies

3. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

4. AIX

Unknown VGs

Hi Guys, I found on one of the server there are 2 VG's which I dont have any Idea of who created .. as below bash-3.00$ lsvg old_rootvg rootvg datavg altinst_rootvg altinst_rootvg under is meant for alternate disk installation.. But I'm not sure for which version of OS it was... (5 Replies)
Discussion started by: kkeng808
5 Replies

5. HP-UX

su: Unknown id: root

Hi, I am facing an issue with HP-UX box. -bash-4.0$ uname -a HP-UX ctsintco B.11.31 U ia64 2795347624 unlimited-user license When ever iam doing a su - root, it is showing the below error -bash-4.0$ su - root Password: su: Unknown id: root Can you pls. let me know how to over come... (2 Replies)
Discussion started by: ysrikanth
2 Replies

6. Solaris

PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10

Hello, I have a problem - I created a chrooted jail for one user. When I'm logged in as root, everything work fine, but when I'm logged in as a chrooted user - I have many problems: 1. When I execute the command ping, I get weird results: bash-3.00$ usr/sbin/ping localhost ... (4 Replies)
Discussion started by: Przemek
4 Replies

7. UNIX for Advanced & Expert Users

NSS - LDAP ---> su: Unknown id:

Hello Experts, I am facing a problem with ldap account, Some systems account running properly, but some systems it returns as "su: Unknown id: username". Please let me know how to start troubleshooting the same. Thanks in Advance. Reagrds, Awadhesh (1 Reply)
Discussion started by: Awadhesh
1 Replies

8. UNIX for Dummies Questions & Answers

unknown utility

Hi everyone, I am a beginner in Linux and Shell scripting.I am migrating a couple of shell scripts from Solaris platform to Linux platform.In one script i saw a usage as : /base/article/ocilib/lobfile $username/$password $filename $filepath I didn't understand what this represents.The... (2 Replies)
Discussion started by: DILEEP410
2 Replies

9. UNIX for Dummies Questions & Answers

unknown host

Hello all I'm new to this site and I have to say that ,it is just awesome. I was able to get most of my questions answered by reading the archives. I've been a UNIX programmer for a while now but new to administration. I just installed SunOS 5.9 on my desktop ( i86pc) . Everything... (3 Replies)
Discussion started by: luft
3 Replies
Login or Register to Ask a Question