Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Help with scripts

Login or Register to Reply

Thread Tools Search this Thread
# 1  
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?

# 2  

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!


These 2 Users Gave Thanks to gull04 For This Post:
# 3  
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.
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.


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

Last edited by RudiC; 03-06-2019 at 05:22 AM.. Reason: Added CODE tags.
# 4  
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:
# 5  
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/*.


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

Last edited by RudiC; 03-06-2019 at 05:45 AM.. Reason: Added CODE tags.
# 6  
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  
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:-
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,

Last edited by rbatte1; 03-06-2019 at 10:36 AM.. Reason: Added comments for requested commands
This User Gave Thanks to rbatte1 For This Post:
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Calling multiple scripts from another scripts

Dear all, I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out. Here is the snippet:- #!/bin/bash HSFILE=/root/Test/Components.txt LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies

2. Shell Programming and Scripting

Calling scripts from with scripts

Hi all, I'm wondering if you could give me some advice. I am new to scripting and am getting rather frustrated that i can get my script to call another script if certain criteria is met, via command line, but I cannot get the same script to work thru the cron jobs. My first script monitors... (8 Replies)
Discussion started by: echoes
8 Replies

3. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

4. Shell Programming and Scripting

Changing the Bash Scripts to Bourne Scripts:URGENT

Hi, I have to write a program to compute the checksums of files ./ I wrote the program using bash and it took me forever since I am a beginner but it works very well. I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies

5. Shell Programming and Scripting

Running scripts within scripts from cron

Hi all, I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so. 0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/ >> /u01/home/weblogic/logs/checkstatus.log The scripts looks like this. ... (4 Replies)
Discussion started by: sirbrian
4 Replies

6. Shell Programming and Scripting

Help with Script using rsh and scripts within scripts

Hi, I've written a script that runs on a Database server. It has to shutdown the Application server, do an Oracle Dump and then restart the Application server. Its been a long time since I wrote any shells scripts. Can you tell me if the scripts that I execute within my script will be executed... (3 Replies)
Discussion started by: brockwile1
3 Replies

7. UNIX for Dummies Questions & Answers

Profile scripts versus rc scripts....

what is the difference between login and profile scripts versus the rc scripts? (1 Reply)
Discussion started by: rookie22
1 Replies

8. Shell Programming and Scripting

Calling expect scripts from other expect scripts

Hi, First, let me explain the issue I am trying to solve. We have a lot of expect scripts with the duplicated send/expect commands. So, I'd like to be able to extract the duplicated code into the common scripts that can be used by other scripts. Below is my test where I am trying to call... (0 Replies)
Discussion started by: seva
0 Replies

9. Shell Programming and Scripting


how do I write a script to add 500 users (3 Replies)
Discussion started by: FLXS
3 Replies

Featured Tech Videos