LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-30-2004, 06:33 PM   #1
tidasu
Member
 
Registered: Aug 2004
Location: Bruges - Belgium
Distribution: Mandrake 10.0
Posts: 45

Rep: Reputation: 15
chmod permission change?


Hello,

I have over 3 gig files wich got a chmod permission of 500.
This means that only the ROOT can read and execute.
This is rather troubling, cause those documents are vital for my work.

Is there a way to retrieve those documents and set the chmod to a 7777 or so?


Kind regards
 
Old 08-30-2004, 06:38 PM   #2
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Rep: Reputation: 15
Go to that directory which all files are in it...
Code:
chmod 777 *.*
must make them all 'rwxrwxrwx'...
 
Old 08-30-2004, 06:45 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Re: chmod permission change?

Quote:
Originally posted by tidasu
Hello,

I have over 3 gig files wich got a chmod permission of 500.
This means that only the ROOT can read and execute.
This is rather troubling, cause those documents are vital for my work.

Is there a way to retrieve those documents and set the chmod to a 7777 or so?


Kind regards
What do you mean by retrieve, where are they?
 
Old 08-30-2004, 06:46 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well....i think it should be ' chmod 777 * '
(leave out the dot , that's DOS i think...)

egag
 
Old 08-30-2004, 06:47 PM   #5
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 34
The above works fine if the directory the files sit in is accessible by other as well. Make sure the directory itself is open also. You may want to set the directory permissions to 1777 which will also set the stickbit on the directory. That way when the files are rw to everyone, the only person that can delete the files is the actual owner of the file.

I'd suggest
chmod 177 /dirname
chmod 666 * /dirname/*

There probably isn't any reason to make the files executable if they aren't scripts; thus 666 vice 777

-tf
 
Old 08-30-2004, 06:49 PM   #6
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Rep: Reputation: 15
I tried they both worked! But * is better because it is shorter than *.* (2 chars )
 
Old 08-30-2004, 06:59 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
*.* will adress all files with a ''.'' in it , * will adress all.
( at least, that's what i think... )

egag
 
Old 08-30-2004, 07:02 PM   #8
tidasu
Member
 
Registered: Aug 2004
Location: Bruges - Belgium
Distribution: Mandrake 10.0
Posts: 45

Original Poster
Rep: Reputation: 15
yah, chmod 7777 dir and chmod 7777 * works, thanks!!
You have helped me a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why chmod cannot change symbolic link permission? mikeshn Linux - General 17 03-22-2012 08:08 PM
BIND 9 Permission denied when chmod is 777 o_O KasperLotus Linux - Networking 10 09-07-2005 01:20 AM
using chmod to change file permission kiwidoc Linux - Newbie 3 07-25-2004 07:39 AM
chmod 755 won't change file permission. duffboygrim Linux - General 11 04-29-2004 07:17 PM
chmod : permission denied onebyone Linux - Software 4 01-27-2004 03:29 PM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration