Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 02:01 PM
12-20-2005 02:01 PM
About su
# vi program1
touch file1
su - adm_usr
cp file1 file2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 02:04 PM
12-20-2005 02:04 PM
Re: About su
Hi,
You can do this with single command itself,
#su - adm_usr -c
-c option allows us to execute a command after su.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 02:06 PM
12-20-2005 02:06 PM
Re: About su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 02:44 PM
12-20-2005 02:44 PM
Re: About su
hi RAC
with the su command , if i just want to let the user can su to adm_usr and copy a file to a specific path , what can I do ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 04:19 PM
12-20-2005 04:19 PM
Re: About su
user_alias group1 = "user1 user2 user3"
cmnd_alias copy="cp source_file dest_file"
group1 ALL=copy NOPASSWD:ALL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 04:56 PM
12-20-2005 04:56 PM
Re: About su
1) installing sudo and giving permission to use cp command with adm_user
2) setting up r* command execution setup and use rcp
3) If you know the password of adm_usr account then use ftp with user command option
4) You can use expect scripting to achive this
5) You can use telnet piping also as,
(
sleep 1
echo "adm_user"
sleep 2
echo "
sleep 1
echo "cp file1 file2"
sleep 2
echo "exit 0"
) | telnet localhost
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 05:03 PM
12-20-2005 05:03 PM
Re: About su
I tried your method , but I am not too understand it, If I want any user who run the program ( program1 ) can copy any file to a specific path , while login ID adm_usr:ADM have this permission to do it , what can I do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 05:05 PM
12-20-2005 05:05 PM
Re: About su
I just want to cp to localhost . thx