LinuxQuestions.org
Visit Jeremy's Blog.
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 06-23-2012, 01:54 PM   #1
ngio
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
Fedora 17 - permission issues "-rwxrwxrwx. (not world readable)..."?


Hello all,

I'm currently having an issue with a program installation, the issue is that the program comes back with the following error...
Quote:
"-rw-r-r--. (not world readable) -./FOLDERS/diary.m"
So what I did was use the
Quote:
chmod -R 777 ./
command and converted all the permissions for the directory to -rwxrwxrwx. Yet when I try to install again the program comes back with

Quote:
"-rwxrwxrwx. (not world readable) -./FOLDERS/diary.m"
And it outputs a description of umask 2 that I should try to use before installing. I havnt personally used the umask 2 command (still new to Linux) although I thought it was similar to the chmod command in assigning permissions? The original installation disk was a .iso and I extracted it on another computer (mac) then copied it to this computer (Linux - Fedora 17) and am now trying to install it, perhaps I need the original .iso to be extracted on the linux computer?

Sorry for the long post, hopefully someone can shed some light on this for me.

Thanks in advance.
 
Old 06-23-2012, 02:02 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
is that matlab( octave) *.m file on a dvd ? or something

or
is it in your home folder

also "777" should almost NEVER be used ( sometimes it is ?ok but )
however SELinux on fedora 17 might not like that and toss an error


that "umask"
the full error would help

by chance is "FOLDERS/diary.m" on a windows NTFS partition ?
 
Old 06-23-2012, 02:46 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Wonder is diary.m exists now. Could the program be making that file and not using the correct permissions when it makes it?

I assume you are using sudo to do all of this?
 
Old 06-23-2012, 03:07 PM   #4
ngio
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi both of you, thank you for the quick responses.

To cover what John VV was saying, the diary.m is in the destination folder of the installation as such:

/home/USER/MATLAB/toolbox/matlab/general/diary.m

where /home/USER/MATLAB is the installation destination folder specified when prompted. Also maybe an important note is that the .iso was mounted on a mac laptop, then copied to a usb then to the Linux desktop (home folder). I tried using the chmod 777 because I was running out of possibilities but I agree that 777 should rarely be used.

This does however lead into what jefro mentioned about the program making that file and not giving the right permissions (this seems to be exactly whats happening). I tried changing the permissions on the installation files to see if it had any effect but unfortunately no. I tried both installing as USER and as root but both led to the following error...

Quote:
Check the content of the installation output file (backend):

/home/USER/MATLAB/install_matlab.out

Error messages found:

 Warning: Permission Problem With MATLAB Files!
 ------------------------------------------------------------------------
 | Checked some files in your MATLAB root directory. These are bad: |

 -rw-r--r--. (not world readable) - ./toolbox/matlab/general/diary.m

 | If you continue with this installation parts of MATLAB may be |
 | inaccessible to the general user after installation. If this is |
 | acceptable for security reasons then continue. Otherwise, you |
 | SHOULD STOP and start all over and extract the files again being |
 | sure that you CORRECTLY set your user file-creation mask with the |
 | 'umask' command BEFORE you extract the files. The argument to the |
 | 'umask' command SHOULD end in 2. For example, |
 | |
 | # umask 2 |
 | |
 | will preserve the read and execute permissions for world. You |
 | should extract the files again using the same userid as was |
 | orginally done so that deleting the existing files is optional. |
 ------------------------------------------------------------------------
 Warning: Permission Problem With MATLAB Files!
 ------------------------------------------------------------------------
 | Checked some files in your MATLAB root directory. These are bad: |

 -rw-r--r--. (not world readable) - ./toolbox/matlab/general/diary.m

 | If you continue with this installation parts of MATLAB may be |
 | inaccessible to the general user after installation. If this is |
 | acceptable for security reasons then continue. Otherwise, you |
 | SHOULD STOP and start all over and extract the files again being |
 | sure that you CORRECTLY set your user file-creation mask with the |
 | 'umask' command BEFORE you extract the files. The argument to the |
 | 'umask' command SHOULD end in 2. For example, |
 | |
 | # umask 2 |
 | |
 | will preserve the read and execute permissions for world. You |
 | should extract the files again using the same userid as was |
 | orginally done so that deleting the existing files is optional. |
 ------------------------------------------------------------------------
-------------------------------------------------------------------
[root@Linux Linux Matlab]# Gtk-Message: Failed to load module "pk-gtk-module"
 
Old 06-23-2012, 04:00 PM   #5
ngio
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Another quick add-on that I tried...

From my mac sudo because the user couldnt copy it {exit with error code (0)}:
Quote:
sudo cp /USER/MATLAB.iso /Volumes/WIN150GB
on the Linux comp under root:

Quote:
umask 2
mount -o loop -t iso9660 MATLAB2009b.iso /mnt/

cd /mnt
./install -t
Then it errored out again.. I thought maybe it was because I extracted the files on a different computer but it doesnt seem to make any difference. Is this what the error is reffering to in the above post? the fact that I may or may not have my file-creation permissions set appropriately?

Last edited by ngio; 06-23-2012 at 04:07 PM.
 
Old 06-23-2012, 11:14 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
unless there is a typo ( i my self use octave so...)
./toolbox/matlab/general/diary.m

and that file is located in
/home/USER/MATLAB/toolbox/matlab/general/diary.m

i would think that it should be
~./toolbox/matlab/general/diary.m
in that the hidden folder ".toolbox " in in the $HOME folder
 
Old 06-24-2012, 12:54 PM   #7
ngio
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok, I'm sorry although I don't really see what difference it makes.. the files are still created by the installation yet they are under the wrong privileges.

Did I do something wrong in my use of umask? because it seems to me this would be the solution, correct?

Thanks again.
 
Old 06-24-2012, 06:34 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
where EXACTLY did you get this "MATLAB2009b.iso "
google comes up with a lot of
" Matlab 2009b including Crack!" from torrents and rapidshare and the now dead ( R.I.P. ) Megaupload


i would drop the old 2009 version and install the current 2012a
http://www.mathworks.com/support/sys...ase/linux.html

however on fedora 17 a bunch of hacking might be required
this is VERY NORMAL for fedora
the current release is very often WAY TOO NEW for most programs to run without some "help"
however if matlab ( and not Octave ) is required for school then dual boot fedora 17 with CentOS 6.2 and install the current 2012a for Red hat 6
on CentOS6

from the "System Requirements - Release 2012a" page
ALL the operating systems there ARE OLD , COMMERCIALLY supported but a bit on the older side
redhat is very conservative
RHEL 6 might be thought of as about the same as fedora 12
RHEL 5 might be thought of as about the same as fedora 3

SUSE Enterprise Desktop (SELD) 11 - supported but NOT FREE
is the almost DEAD OpenSUSE11
opensuse 11.1,11.2,11.3 are unsupported and 11.4 will be in September

BUY 2012a and install it on CentOS6 or install Octave
http://www.gnu.org/software/octave/

octave is in the fedora repos
Code:
yum search octave 
-- if in  the list ---
yum install octave
octave is not 100% compatable with MathLab ( 99%)
mostly the non free video support
 
Old 06-24-2012, 08:57 PM   #9
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Did you notice the dot (.) at the end of your permissions in the output? That dot indicats that the file has SELinux attributes set. Is it possible that SELinux is preventing world read access to your file? (I always run SELinux in "permissive" mode, and check the "troubleshooter" fairly often for unexpected problems.)
 
Old 06-30-2012, 11:58 AM   #10
ngio
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
where EXACTLY did you get this "MATLAB2009b.iso "
google comes up with a lot of
" Matlab 2009b including Crack!" from torrents and rapidshare and the now dead ( R.I.P. ) Megaupload
Hi John VV, this copy of MATLAB didn't come from torrents or rapidshare, I received it from a university group a couple of years ago but never installed it.

I will look into using octave instead, thanks for the heads-up on it.

PTrenholme: I will give this a try today and see what happens. I didn't realize that the dot had a significance, I thought it was the way the permissions were outputted. Thanks for the heads up on this too.
 
Old 07-01-2012, 09:35 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,412

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Quote:
I received it from a university group a couple of years ago but never installed it.
In that case it will have been updated since then ... try to get a current copy
 
  


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
One of the Logical partitions "/dev/sda" of HP SAN not readable shiv.kdm Linux - Newbie 0 05-17-2012 03:08 AM
[SOLVED] du says "cannot read directory" and "permission denied", but I have rwx permissions mrtwice Linux - Software 14 04-21-2010 01:38 PM
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 08:38 AM
Is ".gz" archive file considered "World-Readable"? NightSky Linux - Newbie 4 12-06-2007 06:21 PM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:30 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration