Change permissions on a mount point


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Change permissions on a mount point
# 1  
Old 04-16-2009
Change permissions on a mount point

I have an assignment where I have to temporarily change the permissions on a mount point so that an ordinary user can't access it. Can anybody explain how to do this? I know that to change permissions you can use chmod. First I'm not sure which category "ordinary user" would fall under: owner, group, or other users. So I was thinking of just doing chmod 000 DIRECTORY_NAME. However, the permissions that I'm supposed to change are for one of the directories that comes up when I type the command df. However, all of these directories seem to have some sort of protection from changing their permissions. I hope it makes sense what I have to do. Any direction is greatly appreciated!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies

2. AIX

How to change the mount point of LV?

I have situation where my disk upon reboot, has its mount point as # LOGICAL VOLUME: disk4vol VOLUME GROUP: disk4vg LV IDENTIFIER: 00f609aa00004c0000000152414b786c.1 PERMISSION: read/write VG STATE: active/complete LV STATE: closed/syncd TYPE: jfs2 WRITE VERIFY: off MAX LPs: 512 PP SIZE: 512... (1 Reply)
Discussion started by: mrmurdock
1 Replies

3. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

4. AIX

Change Mount point

Deart All, can any one help to do this, i need to change mount point in AIX 6 /opt/OM should be /usr/lpp/OM, how do i do.... Please help me Urgent issue (2 Replies)
Discussion started by: gulamibrahim
2 Replies

5. Solaris

Neat trick: Changing the permissions of an underlying mount point

A colleague of mine showed me a neat little trick in Solaris (I would guess sol 10 but perhaps earlier versions too) that I'd not seen before and thought I'd share here in case it's new for someone else also. As most of you know, Solaris has the annoying habit of producing error messages when... (6 Replies)
Discussion started by: Smiling Dragon
6 Replies

6. AIX

Creating a new mount point

Hello, I have an AIX Oracle database server that I need to create a new filesystem/mount where I can create a new ORacle home to install 11g on. What are the needed steps to create this? There are mounts for Oracle 9i and 10g already. Thank you. - David (7 Replies)
Discussion started by: dkranes
7 Replies

7. UNIX for Dummies Questions & Answers

How to change the file modification time of a file on nfs mount point

Hi I am accessing a file on nfs mounted device, after completing using of the file, i am tring to restore the access time and modification times of the file. So i got the previous modified time of the file using stat() function and trying to set the date and time for the file, To set these... (6 Replies)
Discussion started by: deepthi.s
6 Replies

8. UNIX for Dummies Questions & Answers

question on change of mount point

Hello Folks, had a basic question mount point and renaming it. on AIX 5.3 box, I have a filesystem Filesystem GB blocks Free %Used Mounted on /dev/issclv01 1.00 0.50 50% /issc/doc Now instead of /issc/doc, i want to rename it to /issc is it as... (2 Replies)
Discussion started by: karthikosu
2 Replies

9. UNIX for Dummies Questions & Answers

concept of mount point

Hi All I Know it is a really basic and stupid question perhaps...But I am going bonkers.. I have following valid paths in my unix system: 1. /opt/cdedev/informatica/InfSrv/app/bin 2. /vikas/cdedev/app Both refer to the same physical location. So if I created one file 'test' in first... (3 Replies)
Discussion started by: Vikas Sood
3 Replies

10. UNIX for Dummies Questions & Answers

mount point

hi people, I'm trying to create a mount point, but am having no sucess at all, with the following: mount -F ufs /dev/dsk/diskname /newdirectory but i keep getting - mount-point /newdirectory doesn't exist. What am i doing wrong/missing? Thanks Rc (1 Reply)
Discussion started by: colesy
1 Replies
Login or Register to Ask a Question
MOUNT_HFS(8)						    BSD System Manager's Manual 					      MOUNT_HFS(8)

NAME
mount_hfs -- mount an HFS/HFS+ file system SYNOPSIS
mount_hfs [-e encoding] [-u uid] [-g gid] [-m mask] [-o options] [-w] [-x] special | node DESCRIPTION
The mount_hfs command attaches the HFS file system residing on the device special to the global file system namespace at the location indi- cated by node. This command is normally executed by mount(8) at boot time. The options are as follows: -e encoding (standard HFS volumes only) Specify the Macintosh encoding. The following encodings are supported: Arabic, ChineseSimp, ChineseTrad, Croatian, Cyrillic, Greek, Hebrew, Icelandic, Japanese, Korean, Roman (default), Romanian, Thai, Turkish -u uid Set the owner of the files in the file system to uid. The default owner is the owner of the directory on which the file system is being mounted. -g gid Set the group of the files in the file system to gid. The default group is the group of the directory on which the file system is being mounted. -m mask Specify the maximum file permissions for files in the file system. (For example, a mask of 755 specifies that, by default, the owner should have read, write, and execute permissions for files, but others should only have read and execute permissions. See chmod(1) for more information about octal file modes.) Only the nine low-order bits of mask are used. The default mask is taken from the directory on which the file system is being mounted. -o Options are specified with a -o flag followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. -w Mount the HFS wrapper volume. -x Disable execute permissions on a standard HFS file system. SEE ALSO
mount(2), unmount(2), fstab(5), mount(8) BUGS
Some HFS file systems with highly fragmented catalog files may not mount. HISTORY
The mount_hfs utility first appeared in Mac OS X Server 1.0. Mac OS X March 14, 2001 Mac OS X