Solved

UNIX newbie here

Posted on 2004-09-09
5
227 Views
Last Modified: 2010-04-21
I have an access to the school solaris OS. I have my own directory and i want to deny an access to my directory to anyone except me of course and the admin. I want to do that because i can access other people's directory and i can see their files and they can see my files. Thanks in advance
0
Comment
Question by:Carl3003
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 12023338
man chmod

specifically  chmod o-r mydir

0
 

Author Comment

by:Carl3003
ID: 12023404
chmod o-r mydir- this means that only the admin can read mydir?
0
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 25 total points
ID: 12023467
no.  

Depending upon your primary group affiliation, other group members might still be able to read the directory.
To deny other group  members access, you would remove that right as well:

chmod g-r mydir

The admin would have superuser privileges, allowing unrestricted access to the directory.

0
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 25 total points
ID: 12023470
chmod 700 mydir

this will only allow you to access to your dir (the super user root is the god of the system
he can still do whatever he want)
man chmod
to learn more details.
0
 

Author Comment

by:Carl3003
ID: 12023557
cool, i am getting there...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now