The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Managing FileSystems on Solaris panchpan SUN Solaris 15 10-17-2007 04:35 AM
Managing Users in a Global Environment Randal UNIX for Advanced & Expert Users 0 02-15-2007 03:14 PM
error in managing linklist bhakti_2025 High Level Programming 3 05-17-2006 10:59 AM
Managing nodes??? TRUEST UNIX for Advanced & Expert Users 5 03-21-2003 05:47 AM
best solution for managing many nameservers Bashar UNIX for Advanced & Expert Users 1 01-07-2003 03:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-20-2000
SmartJuniorUnix SmartJuniorUnix is offline
Registered User
  
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
Question

I need to setup several accounts on a solaris system.
(passwd,shadow,group)
My question is :

How can I create a group which can access a machine, but only in certain directories?



  #2 (permalink)  
Old 09-20-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,522
Post

That is easy, if I read your question correctly.

Lets say you have users A, B, C, D.

Set up a new group, say Newgroup in the /etc/group(s)
file. In that file, add A, B, C D to that group.

On the directories, give the appropriate permission
to allow the access you want to that group.

Details are in all standard UNIX books. Hope this helps.
  #3 (permalink)  
Old 09-20-2000
SmartJuniorUnix SmartJuniorUnix is offline
Registered User
  
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
Thanks

if I understand this correctly,

I am basically

-creating the users/groups
-change the directory permissions to reflect which group is allowed to access that directory

If i am correct, can you give me some command line examples

  #4 (permalink)  
Old 09-20-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,522
Wink

OK. The actual commands and flags depend on the flavor of UNIX you are playing on (YMMV):

In Linux you add users with the 'adduser' command.

After adding users, you create a group by editing the
/etc/group file and add users to the group. I use the
VI editor.

Now you have users and groups .

The permissions are based on your different requirements.
Lets say you want the new users to write in the directory
but no modify it.

mkdir /tmp/newdirectory

chown root.newgroup /tmp/newdirectory

chmod 770 /tmp/newdirectory

This means that root will be able to read, write, and search; members of the newgroup will be able to do the
same. Other users and groups will have no permissions
to write, search or read the directory.

It is best, IMHO, for you to read the man pages on chown()
and chmod() and then experiment by changing to different
users (to get a flavor for how it actually works.)


  #5 (permalink)  
Old 09-20-2000
SmartJuniorUnix SmartJuniorUnix is offline
Registered User
  
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
Thumbs up cool

Alright I get it

Just for your futher reference, I am working with Solaris 2.6

I know this is simple admin stuff but I am scheduled to take a class on this stuff this fall

Thanks again

Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0