LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-14-2002, 03:30 AM   #1
newbie_jubie
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Rep: Reputation: 0
mount -- changing directory permission


Hi,

How do I change directory permissions on a file system using mount.

The problem is the /etc/ftab file does not show the mount point of this directory namely /usr/local/sbin or /usr for that matter. This directory is read only and I want it to change it to rw.

I know a lot of you would have done this often.

Thanks,
/ still newbie_jubie
 
Old 02-14-2002, 08:30 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
As I understand you have a separate partition for your /usr, and I believe you made it mount automatically on boot, right? Hence, I see nothing better then chmod the whole mount point ( chmod -R 777 /usr), and he-he it is a security risk, you can also chown the whole mount point, another security risk, you can add yourself into root group, or you can look at sudo and /etc/sudoers for a solution.
 
Old 02-14-2002, 04:00 PM   #3
newbie_jubie
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Hi neo7777,

I guess I didnt make myself clear. I am a regular unix user and the magical wand of the "administrator" has been thrust upon me. I did not boot the system myself but using it to install some software.

I am installing a software but I get a permission denied warning on /usr/local/sbin. The mount command gives the following output

/dev/hda1 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hda5 on /u1 type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
chpc15pid479) on /net type nfs (intr,rw,port=1023,timeo=8,retrans=110,indirect
,map=/etc/amd.net,dev=00000003)
milou:/u1/local on /.automount/milou/root/u1/local type nfs (nosuid,nodev,dev=00
00000a)
lutece:/home on /.automount/lutece/root/home type nfs (nosuid,nodev,dev=00000004
)
lutece:/usr1 on /.automount/lutece/root/usr1 type nfs (nosuid,nodev,dev=00000005
)
lutece:/usr2 on /.automount/lutece/root/usr2 type nfs (nosuid,nodev,dev=00000006
)
lutece:/usr3 on /.automount/lutece/root/usr3 type nfs (nosuid,nodev,dev=00000007
)
lutece:/usr4 on /.automount/lutece/root/usr4 type nfs (nosuid,nodev,dev=00000008
)
lutece:/usr5 on /.automount/lutece/root/usr5 type nfs (nosuid,nodev,dev=00000009
)

I dont see the mount point for /usr but since I am getting the permission denied warning, I assume it does not have rw access. And I do have root permissions. I guess chmod is overridden by the mount permissions.

Any ideas,

/ newbie_jubie
 
Old 02-14-2002, 11:43 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
As I can see the /usr is a directory on your /, which is mounted according to your fstab on / (/dev/hda1), so the solution would be as root
chmod -R 755 /usr

it will add r, w and x permissions to all files and dirs under /usr for root account
 
Old 02-14-2002, 11:57 PM   #5
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Usually you need to install stuff as root. Since you said you are a "regular" user, that is probably the reason you get the permission errors. Try the install logged in as root.
 
Old 02-15-2002, 01:06 AM   #6
newbie_jubie
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the replies guys.

You are right neo. it is under / directory. The directory in question was /usr/local/sbin. mount showed / having the rw permissions. but /usr/local was mounted on a different file system and didnt have the permissions. One more thing, a directory may have rw permissions but if its not mounted with the rw permissions then we cant modify or create in this directory.

malicious, the mount permissions can override the root privileges. I did have root privileges.

Last edited by newbie_jubie; 02-15-2002 at 01:08 AM.
 
  


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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 06:50 PM
mount:not a directory. Suse dvd mount problem tzanis Linux - General 8 11-06-2005 11:30 AM
Changing permission jaakkop Slackware 1 09-29-2004 12:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 01:41 PM


All times are GMT -5. The time now is 02:33 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