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 03-28-2012, 03:07 PM   #1
southwlm
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Problems changing file and directory permissions using chmod


I'm having trouble changing permissions in any directory or file, specifically to execute. Here's some info from my terminal and what's happening:

Quote:
lee@lee-desktop:/media/HDD/FortranNotes$ ls -l
total 47
-rw------- 1 lee lee 13233 2012-03-28 14:12 a.out
-rw------- 1 lee lee 451 2012-03-28 13:34 Means
-rw------- 1 lee lee 437 2012-03-28 13:38 Means.f
-rw------- 1 lee lee 451 2012-03-28 13:38 Means.f~
-rw------- 1 lee lee 437 2012-03-28 13:38 Means.f95
-rw------- 1 lee lee 8983 2012-03-28 13:40 Means.x
-rw------- 1 lee lee 523 2012-03-28 14:11 ParabolaLength.f90
-rw------- 1 lee lee 13233 2012-03-28 14:12 ParabolaLength.x
Quote:
lee@lee-desktop:/media/HDD/FortranNotes$ pwd
/media/HDD/FortranNotes
lee@lee-desktop:/media/HDD/FortranNotes$ whoami
lee
lee@lee-desktop:/media/HDD/FortranNotes$ chmod +x Means.x
lee@lee-desktop:/media/HDD/FortranNotes$ ls -l
total 47
-rw------- 1 lee lee 13233 2012-03-28 14:12 a.out
-rw------- 1 lee lee 451 2012-03-28 13:34 Means
-rw------- 1 lee lee 437 2012-03-28 13:38 Means.f
-rw------- 1 lee lee 451 2012-03-28 13:38 Means.f~
-rw------- 1 lee lee 437 2012-03-28 13:38 Means.f95
-rw------- 1 lee lee 8983 2012-03-28 13:40 Means.x
-rw------- 1 lee lee 523 2012-03-28 14:11 ParabolaLength.f90
-rw------- 1 lee lee 13233 2012-03-28 14:12 ParabolaLength.x
As you can see, none of the permissions have changed

I've also tried several different parameter number and letter formats after chmod including but not limited to: 777, 544, go+x, and several others.

Please help

Last edited by southwlm; 03-28-2012 at 03:08 PM.
 
Old 03-28-2012, 03:41 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,134

Rep: Reputation: Disabled
From the pathname, this seems to be an external hard drive of some sort, correct? What type of filesystem is on it?

Last edited by Ser Olmy; 03-28-2012 at 03:42 PM.
 
Old 03-28-2012, 03:47 PM   #3
southwlm
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
It's a secondary hard drive used to store data, it's internal. It's not the dard drive Ubuntu is installed as. It's formatted as an NTFS file system.
 
Old 03-28-2012, 06:56 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
The perms you are 'seeing' are Linux's interpretation of NTFS perms (sort of).
Basically, each file-sytem type eg ext3, NTFS has its own unique idea of 'perms'.
The best thing to do is change them in /etc/fstab ie at mount time, as ext3 perms != NTFS perms.

HTH
 
Old 03-29-2012, 03:57 PM   #5
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 311

Rep: Reputation: 71
If it is a NTFS disk check the mount options and check if it is mounted with ntfs or fuseblk(ntfs-3g). The standard ntfs driver is read-only. You need the ntfs-3g driver if you want rw access.
 
  


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
chmod: changing permissions of `public_html': Operation not permitted painterj Linux - Newbie 11 04-09-2010 10:40 PM
how to apply "chmod g+r" permissions to a deep file and directory structure htamayo Linux - Newbie 3 03-20-2009 04:45 PM
Changing file permissions within a directory for all files. cajunaggie Linux - Newbie 2 02-06-2005 02:53 AM
File Permissions, CHMOD problems, image included. DeathGoth Programming 16 10-05-2004 10:51 PM
Changing permissions (chmod) teyesahr Linux - Newbie 1 07-31-2003 05:52 PM


All times are GMT -5. The time now is 03:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration