Search Results

Search: Posts Made By: catalint
3,139
Posted By catalint
Hi, We need to get from this config files...
Hi,

We need to get from this config files ALL the paths to log files that configured , for example :
/var/adm/messages
/dev/sysmsg
3,139
Posted By catalint
how to parse /etc/syslog.conf file
Hello there,

Guys I've got an issue and I need a hint...I have to parse /etc/syslog.conf file (under solaris) and need to get all path accordingly to all logs configured in there.

Bellow it's...
4,939
Posted By catalint
Hi guys, This is what have I done: ...
Hi guys,

This is what have I done:


#!/bin/bash

user_belongs()
{
if `groups $var1 | /usr/xpg4/bin/grep -q $var2`
then
return 0 else
return 1
fi

}


...
4,939
Posted By catalint
i tried on a solaris 5.10 your command: ...
i tried on a solaris 5.10 your command:

bash-3.00# groups test | grep -q other
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
i want to mention that test belongs to other...
4,939
Posted By catalint
users and groups /etc/group parsing
Hi,

I have two little issues:

1) there is possible in sh to create a function who return a boolean value?
2)i have to verify if an user belongs to a group and i think it is needed to create...
18,489
Posted By catalint
how to encrypt a string using md5
Hi there,

I want to encrypt a string (using md5 algorithm) using shell script. Any ideas?
Is possible only using sh or awk ?

I can't install md5sum on my solaris machine

Thanks

regards,...
2,266
Posted By catalint
SunOS 5.10 Generic_127127-11 sun4u sparc...
SunOS 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Blade-100 and also 5.9.
2,266
Posted By catalint
Users who have never changed their password from /etc/shadow.
Hello,

I have to do a script which returns users who have never changed their password from /etc/shadow.
Here is what have I done and I'm not sure if it's ok.
I tried to return just users who...
3,036
Posted By catalint
But if the file was copied in the home directory...
But if the file was copied in the home directory by a user or by another program and its rights are very restrictive.
As I read "each file belongs to a specific user and group. Access to the files...
3,036
Posted By catalint
As i understand, restricted means that the user...
As i understand, restricted means that the user john from /export/home/john doesn't have access to this file(when i say access this means , doesn't have rights to execute, modify or read the file)....
3,036
Posted By catalint
Hi, Yes, it is a solaris os but i need to...
Hi,

Yes, it is a solaris os but i need to display something like this:

User abcd has the following restricted files in home: a.file, b.file...etc (in /export/home i have many users)
Your...
3,036
Posted By catalint
users who have un-sanctioned(forbidden) files in their home directory.
Hello guys,

I have to create a sh script which return users who have un-sanctioned(forbidden) files in their home directory.

I tried to do:
#!/bin/sh -x
SHADOW_FILE="/etc/shadow"...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 06:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy