Help with scripts


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 2 Weeks Ago
Help with scripts

Hi Team,

I have a group under that group i wanted to create more than 20 users. Can I create more than 20 users ?and all the users should have the rights to read only particular folder.Is it possible?

Thanks,
Iswarya.M
# 2  
Old 2 Weeks Ago
Hi,

You need to give us a little more help here, what OS are you using, and what type of system are you using, what shell are you running, have you tried anything? - the more information that you provide the more help it is likely that you will recieve.

An answer to your post - Yes it can be done!

Regards

Gull04
These 2 Users Gave Thanks to gull04 For This Post:
rbatte1 (2 Weeks Ago) RudiC (2 Weeks Ago)
# 3  
Old 2 Weeks Ago
Hi Gull,

Thanks for the reply.
we have linux in place.We have tried the below command for creating user and giving permission for the user under the group.
Code:
sudo useradd -G groupname username
sudo passwd username
sudo chown -R username:groupname /foldername

If i i give permission of the folder to user from group i am not able to access.

Regards,
Iswarya.M


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 2 Weeks Ago at 04:22 AM.. Reason: Added CODE tags.
# 4  
Old 2 Weeks Ago
Quote:
Originally Posted by iswarya123
...

i am not able to access.
...

HOW are you "not able to access"? What type of access? Pls show error messages, and file / folder permissions. Also, show the output of groups username, with username obfuscated if need be.
This User Gave Thanks to RudiC For This Post:
rbatte1 (2 Weeks Ago)
# 5  
Old 2 Weeks Ago
Hi RUdic,

consider a is user and b is group.
I have given read permission for that particular folder to that user(a) under the group(b).After that the user(a) can able to see all the content under /Folder/*.But group b is getting permission denied error for the folder /folder/*.

Regards,
Iswarya.M


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 2 Weeks Ago at 04:45 AM.. Reason: Added CODE tags.
# 6  
Old 2 Weeks Ago
Facts, please, not prose describing what you see / interpret what happened.
Post the user info (as requested above) AND the folder info e.g. ls -l. Do you have additional security features enabled (SELinux et al.)?
# 7  
Old 2 Weeks Ago
Given that we cannot see you server, have no access to it and no desire to do anything on it anyway, perhaps you could actually use the real values (not username and groupname, but user rbatte1 group admin or whatever) and share the screen output (pasted in CODE tags) from the following:-
Code:
uname -a                                 # What OS & version are we dealing with
getent group your_group_name             # Is the group listing okay, and does it contain the permitted user
getent user permitted username           # Is the user listing okay and does it have the required group
ls -l /path/to/folder                    # Long list the files in the target directory (or a specific file for clarity
ls -dl /path/to/folder                   # Long list the target directory, looking at permissions there
getenforce                               # Check SELinux state

It would take the guesswork out of it and it is unlikely that there is anything that would be commercially sensitive for you to worry about.

Thanks, in advance,
Robin

Last edited by rbatte1; 2 Weeks Ago at 09:36 AM.. Reason: Added comments for requested commands
This User Gave Thanks to rbatte1 For This Post:
RudiC (2 Weeks Ago)
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Calling multiple scripts from another scripts sharsour Shell Programming and Scripting 3 09-12-2013 02:33 AM
Calling scripts from with scripts echoes Shell Programming and Scripting 8 07-27-2012 03:31 PM
KSH - How to call different scripts from master scripts based on a column in an Oracle table Yoodit Shell Programming and Scripting 2 06-20-2011 07:39 AM
Need help on scripts jsmitha2009 AIX 7 05-11-2011 02:23 AM
Changing the Bash Scripts to Bourne Scripts:URGENT pgarg1989 Shell Programming and Scripting 3 08-30-2009 10:35 AM
Running scripts within scripts from cron sirbrian Shell Programming and Scripting 4 07-14-2009 10:04 AM
Help with Script using rsh and scripts within scripts brockwile1 Shell Programming and Scripting 3 06-18-2009 09:38 AM
New to scripts mmason3122 Shell Programming and Scripting 5 11-10-2008 11:42 AM
Profile scripts versus rc scripts.... rookie22 UNIX for Dummies Questions & Answers 1 09-17-2008 09:31 AM
Calling expect scripts from other expect scripts seva Shell Programming and Scripting 0 04-03-2008 01:45 PM
I need some scripts:S burakkilic Shell Programming and Scripting 5 05-14-2006 12:46 PM
Scripts LiTo UNIX for Dummies Questions & Answers 4 11-04-2004 06:08 PM
Help with scripts LiTo UNIX for Dummies Questions & Answers 1 11-04-2004 05:03 PM
Scripts GW01 UNIX for Dummies Questions & Answers 3 12-11-2002 07:06 AM