Search found 136 matches

by knzzz
2019/11/21 23:53:52
Forum: CentOS 8 - Security Support
Topic: running script with sudo permission
Replies: 5
Views: 567

Re: running script with sudo permission

Yes , provided with that sudo permission that non admin should run only that script with elevated access
by knzzz
2019/11/21 13:54:36
Forum: CentOS 8 - Security Support
Topic: running script with sudo permission
Replies: 5
Views: 567

running script with sudo permission

Hi All,

I want to run a script with sudo perimission to non admin user can any one assist on this

Regards
Kanna
by knzzz
2019/10/27 16:28:26
Forum: CentOS 7 - General Support
Topic: read two different variables
Replies: 2
Views: 405

read two different variables

Hi Team, I want to read the server list one by one from file1.txt and install the certain rpm in certain serves list in file 2.txt from top to bottom using the shell script For eg: file1.txt server 1 server2 server3 File2.txt abc.rpm def.rpm ghi.rpm jkl.rpm abc .rpm in server1 def.rpm in server 2 gh...
by knzzz
2019/10/20 06:53:53
Forum: CentOS 7 - General Support
Topic: creating the users securely
Replies: 1
Views: 176

creating the users securely

Hi Team,

I have 3 users and its respective password now my query is how to write a script in such a way if someone read the script should not be able to view (if we did the encryption) the password, need assistance

Regards
Kanna
by knzzz
2019/10/20 05:49:51
Forum: CentOS 7 - General Support
Topic: encrypt password
Replies: 2
Views: 368

Re: encrypt password

To make it much simple

i want to encrypt a string and should give it as password for user creation at the same time when the shell in read we should be able to view the password (encrypted)

Regards
Kanna
by knzzz
2019/10/19 07:39:55
Forum: CentOS 7 - General Support
Topic: encrypt password
Replies: 2
Views: 368

encrypt password

Hi Team,

When i tried to install mkpasswd in centos 7 getting message as command not found or is there any other way i can encrypt a password in centos 7 so that i can use

in user creation script

Regards
Kanna
by knzzz
2019/10/11 07:58:39
Forum: CentOS 7 - General Support
Topic: shell doubt
Replies: 1
Views: 124

shell doubt

How to touch a file exactly at specific time daily by taking its current date along in the file For eg: abc_dd-mm-yy.txt file need to be created daily in case if the system rebooted or shutdown once it is up it should create the file if one file is already there another file should not get created R...
by knzzz
2019/10/09 15:58:08
Forum: CentOS 7 - Software Support
Topic: declaring the variable doubt in shell
Replies: 4
Views: 463

Re: declaring the variable doubt in shell

thank you it worked
by knzzz
2019/10/07 17:30:57
Forum: CentOS 7 - Software Support
Topic: declaring the variable doubt in shell
Replies: 4
Views: 463

declaring the variable doubt in shell

Hi Team,
my question is how to declare the out of dt in the path have clarification in the last line

pt = "/path/of/the/file.txt"

dt=`date`

echo "$dt" >> $pt

Regards
Kanna
by knzzz
2019/10/02 08:46:02
Forum: CentOS 7 - Software Support
Topic: running three commands
Replies: 1
Views: 159

running three commands

Hi all i want to run the vgexport $ABC ; vgimport $ABC ; vgchange -ay $ABC in a script by getting the volume group ($ABC) name as input and how to do it if we have more than one set of volume group (for eg $ABC $DEF $GHI) how to write it in script Regards Kanna

Go to advanced search