1836383 Members
3950 Online
110100 Solutions
New Discussion

Re: SUDO very urgent

 
SOLVED
Go to solution
abunnudur
Advisor

SUDO very urgent

hi dears,
i have little knowledge about HP UX but sadly without any experience...
so i need ur help to find SUDO application and how to install it step by step...
wish to hear any reply as soon as possible...
Regards,
25 REPLIES 25
Khairy
Esteemed Contributor

Re: SUDO very urgent

hi

not sure what hpux version, but for a start download it from:

http://h20392.www2.hp.com/portal/swdepot/index.do

register and choose sudo to download.

https://h20392.www2.hp.com/portal/swdepot/try.do?productNumber=HPUXIEXP1123

when downloaded. Install via command swinstall. If u choose the zips, make sure u uncompress it.
# swinstall -s /mnt/.depot

good luck
Steven E. Protter
Exalted Contributor

Re: SUDO very urgent

Shalom,

You are definitely better off using the sudo provided in the link above.

Note that contrary to Linux all the configuration files for this sudo are located in the /opt file system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
abunnudur
Advisor

Re: SUDO very urgent

hi...
i am still confused,i saved the file on my desktop but what to do after that?
it is not zip file;extension file is : .depot
Regards,
Dennis Handly
Acclaimed Contributor
Solution

Re: SUDO very urgent

>extension file is: .depot

# swinstall -s $PWD/.depot \*
Khairy
Esteemed Contributor

Re: SUDO very urgent

abunnudur,

ftp the file from your pc to the server.

The from the server, execute swinstall.

Abhinesh AV
Occasional Advisor

Re: SUDO very urgent

After Installation, you can configure user permissions in /etc/sudoers file .

see #man sudoers for more details.
Mark McDonald_2
Trusted Contributor

Re: SUDO very urgent

abunnudur

You will need root access to run swinstall command and configure sudo.

Deepak Kr
Respected Contributor

Re: SUDO very urgent

Your selection/choice is absolutely correct.
using sudo is execellent option to delegate system admin tasks without giving root passwords to a group of users.

install using swinstall and configure using
vi /etc/sudoers

Refer to man sudoers for more info.

"There is always some scope for improvement"
abunnudur
Advisor

Re: SUDO very urgent

hi Dears,
still not workink,i am worried that u not getting my point...
this is the sudo file that i downlaod from internet to my desktop:
ixSudo_A.11.00-1.6.9p16.001_HP-UX_B.11.23_IA_PA.depot
it is around 4 MB
now i want some details about how to install this file on the HP server...in other way how to catch this file from my desktop and install it on HP server?
it is urgent..
sorry for disturbing...
Regards,
Torsten.
Acclaimed Contributor

Re: SUDO very urgent

use ftp to transfer the depot to your server (binary mode!), let's say to /tmp.

Now use

# swinstall -s /tmp/ixSudo_A.11.00-1.6.9p16.001_HP-UX_B.11.23_IA_PA.depot

to install it.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
abunnudur
Advisor

Re: SUDO very urgent

well this is my problem:
how to transfer the depot to server using ftp?
if there any software nedded for that?
Regards,
Torsten.
Acclaimed Contributor

Re: SUDO very urgent

Using ftp is easy, just opne a command window on your windows PC and type

> ftp

use valid credentials to logon.

You may also use a ftp client like this:

http://filezilla-project.org/

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
abunnudur
Advisor

Re: SUDO very urgent

good..until now i openned command prompt on WIN
i typed:
ftp (the IP address)
then this sentense appeared:
Connection closed by remote host
so what's the problem?
Torsten.
Acclaimed Contributor

Re: SUDO very urgent

Maybe ftp is disabled for security reasons.

Have a look into

/var/adm/syslog/syslog.log

for more messages.

With a ftp client like filezilla you can also use SFTP.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: SUDO very urgent

Forgot to add this:

If you have FTP services running on your PC, you try the other way around - use ftp from your server to get the file from your PC.

Default location on the PC is

c:\inetpub\ftproot

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
abunnudur
Advisor

Re: SUDO very urgent

on that directory it said:
Execute permission denied
now i cant use ftp i guess...
i think there is a software like putty can help me to transfer this file from WIN to HP server...
what's ur opinion?
Torsten.
Acclaimed Contributor

Re: SUDO very urgent

As said before - there are sooo many clients available for file transfer.

The putty download page also lists clients for

scp
and
sftp.

try a client of your choice.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Rasheed Tamton
Honored Contributor

Re: SUDO very urgent

Hi,

If ftp not working try using sftp. Or do you have any UNIX (Linux) guys around. If so, just ask them for little support. Either the firewall is blocking your ftp port or ftp should have disabled from the server side.

Once you copy (ftp/sftp) the file to the HP-UX box, then you have to install the depot (sudo software package) using swinstall command as said in the above posts.

Regards.
abunnudur
Advisor

Re: SUDO very urgent

hi dear...very thc for ur quick support;finally i installed the Sudo software on the server...
now the second step is to create a user with full access...
what i need is how to create a user id (assume it USER) and how to give him all permissions he need?
Regards,
abunnudur
Advisor

Re: SUDO very urgent

so my firends how to add a user in SUDO application?
Khairy
Esteemed Contributor

Re: SUDO very urgent

hi abunnudur,

glad to know u manage to install sudo.

There is no easy way to teach u this. But i will give it a try.

Open sudoer file
# visudo

Assign what commands u want to allow the user to execute

Example, maybe u want to allow user to use tar and rm.

Cmnd_Alias BACKUP=/usr/bin/tar
Cmnd_Alias RM=/usr/bin/rm

Then at #User privilege specification, put the following (assume u created a user ID call oper and the server hostname is dbserver)

oper DBSERVER= NOPASSWD: BACKUP, NOPASSWD: RM

And thats it!

Its a vi editor. So to quit, press ESC button follow by colon w q exclamation mark (:wq!)

Really appreciate if you could assign some points to all who provide feedbacks to your questions here.

tHANKS!

Khairy
Esteemed Contributor

Re: SUDO very urgent

hi abunnudur,

before i forget. Need to inform you a few things.

After you finish edit the sudoers file, login via user id you created. And test the sudo.

Example:
# su - oper
$ id
oper etc etc etc

Make sure the path is there, dont have a hpux box with me now but lets assume its in /usr/local/sudo

$ echo $PATH

If /usr/local is not there, then its probably good if you could add it now.
$ PATH=$PATH:/usr/local

Test it. In this case, i try to backup /home
$ sudo tar cvf /dev/rmt/0mn /home

If the command execute accordingly and you are not prompt with password, thats mean you are fine.

If not, then it would be good if you could check again the sudoers file.

Rgds
Steven E. Protter
Exalted Contributor

Re: SUDO very urgent

Shalom,

http://newbiedoc.berlios.de/wiki/How_to_configure_Sudo_to_run_programs_as_a_different_user

The editor for the sudo configuration file has a built in syntax checker.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
abunnudur
Advisor

Re: SUDO very urgent

Good morning dears,
i want to thx u very much for your high support and i appreciate your perfect knowledge...
I finished my task very well...
Regards,