If you cannot install sudo, the target user can allow you access by making an entry in a .rhosts file containing a single line with two parameters:
See man .rhosts .
Make sure that any .rhosts file has permissions 600 and is owned by root (or less preferably owned by the user).
Some sites do not allow .rhosts files because they are deemed to be a security risk. This is mainly because it's easy to create one which would allow anybody access to an account.
Hi everyone,
I have a very simple question to ask :
How can I locate the files created the last "n" days?
(the find command has 3 options : -atime, -ctime, -mtime, but none of these returns the newlly created files ... am I wrong?)
Thank you. (3 Replies)
Hi,
I am using the following command.
nawk '$1==p{$2=sprintf("%09d",$2+1)};1' p=$JOB_NUM q=$LEN $VALUE_TABLE > ./TEMP_TABLE
As you can see the code above, I basically read a value from the table VALUE_TABLE and select a particular row based on searching the value JOB_NUM. Now Actually the... (2 Replies)
I am reading a Sunsolve document covering moving /var and am confused by one step. What does this command do (in English):
Move into the existing /var directory and transfer all the data to /newvar
# cd /var
# tar cvf - . | (cd /newvar; tar xfBp -) (4 Replies)
Hi ,
I need your help to know the exact operation of this following code ..
cat file1 | ux2dos | tr -d ''>>file2
file1 contains only one line : "DTS-PO\SPECTRUM WO 56"
the data contains a META CHAR "\" .. look at the above line.
But , The file2 output contains :... (7 Replies)
:confused:
Hi All,
i am new to unix....so i am not sure whether i am asking the related question with our forum..
My question .....Can anyone explain me about the CGI script
is it something related to Unix or Linux or some other language.
Thanks in advance
Sha (1 Reply)
Hi All,
can you please help me to get clarified about the 'write' command.
I have a script that sends a content of a file msg.txt to other user 'User B' using 'write' command.
Script:
------
.....
cat msg.txt | write "user B"
.....
Issue: I face a issue here, this scripts sends... (3 Replies)
I know the topic of getting yesterday's date has been covered ad nauseum, but I just want to be clear on something.
I recently started using the command
date --date='1 days ago' '+%m/%d/%y'
to get yesterday's date and it's been working great. I just want to be certain that it is going to... (1 Reply)
Hi,
I am checking below command to see the status of windows service from unix but due to "!" sign it is not accepting password. Please suggest alternative what should i do resolve the issue.
net rpc service status W32Time -I 10.1.1.1 -U "mydomain\admin%Passwod12!"
One more thing... (1 Reply)
Hi,
I'm a newbie to shell programming and have just written a small program to transfer files.
# job variables
RunMode=$1
export DATETIME=`date +%Y%m%d%H%M%S`
export STARTTIME=`date +%Y%m%d%H%M`
export ShellDir=/rosetlt/scripts/ksh
export LogDir=/rosetlt/scripts/log
export... (2 Replies)
Discussion started by: narayanv
2 Replies
LEARN ABOUT DEBIAN
ldapsetpasswd
ldapsetpasswd(1) General Commands Manual ldapsetpasswd(1)NAME
ldapsetpasswd - modifies a POSIX user account's password in LDAP.
SYNOPSIS
ldapsetpasswd <username|uid> [encodedpassword]
OPTIONS
<username | uid>
The name or uid of the user whose password has to be modified.
[encoded password]
If specified this way, the password will be copied verbatim into the LDAP directory. If not specified, you will be prompted for a
password that will be changed using the ldappasswd(1) command.
SEE ALSO ldapfinger(1), ldapid(1), ldapgid(1), ldapscripts(5).
AVAILABILITY
The ldapscripts are provided under the GNU General Public License v2 (see COPYING for more details). The latest version of the ldapscripts
is available on : http://contribs.martymac.org
LIMITATIONS
When used interactively, passwords generated with this command are propagated with the ldappasswd(1) command. Thus, the resulting format
depends on the 'password-hash' option of your server's slapd.conf(5) file.
You can always force an encoded password (using the hash format of your choice) by specifying it on the command line.
BUGS
No bug known.
November 1, 2006 ldapsetpasswd(1)