- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- -rwsrwxr-x
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
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-21-2006 10:26 PM
12-21-2006 10:26 PM
I see permissions for some of the executable files as mentioned in subject line. I wish to FTP these files and run on another server. After FTPing I see permissions are as -rwx------ , How can i make them -rws------
Thanks for your help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 10:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 10:30 PM
12-21-2006 10:30 PM
Re: -rwsrwxr-x
# chmod 4700 file
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 10:44 PM
12-21-2006 10:44 PM
Re: -rwsrwxr-x
Here, setuid bit is set for the user, so that anyone can get the privilege of that particular user and execute them.
To set it on the new machine,
execute
#chmod u+s
Please refer this link for more info;
http://www.xav.com/scripts/help/setuid.html
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:04 AM
12-22-2006 12:04 AM
Re: -rwsrwxr-x
Thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:11 AM
12-22-2006 12:11 AM
Re: -rwsrwxr-x
Case insensitive?
Word anchored?
All occurances, or just the first? perl line?
Content, all, anchored, case insensitive:
# cd /home/tmp
# perl -pi -e's/\bhello\b/goodbye/gi' *
File names, unanchored, case sensitive, first occurance only:
# cd /home/tmp
# perl -MFile::Copy -e'for$f{<* >){($x=$f)=~s/hello/goodbye/;move$f,$x}'
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:19 AM
12-22-2006 12:19 AM
Re: -rwsrwxr-x
#!/usr/bin/sh
FN1=$1
FN2=$2
for FILE in *${FN1}*
do
mv $FILE $(echo $FILE | sed "s/${FN1}/${FN2}/")
done
exit 0
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:26 AM
12-22-2006 12:26 AM
Re: -rwsrwxr-x
I wish to replace actually -
'/opt/prog/' with '/dev/'
Please suggest what could be the command for replacement (having / in string) in many
files.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:41 AM
12-22-2006 12:41 AM
Re: -rwsrwxr-x
/ is not mandatory as delimiter:
'/opt/prog/' with '/dev/'
Inline replace:
# perl -pi -e's{/opt/prog/}{/dev/}g' *
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:48 AM
12-22-2006 12:48 AM
Re: -rwsrwxr-x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:50 AM
12-22-2006 12:50 AM
Re: -rwsrwxr-x
#!/usr/bin/sh
DIRNAME=/home/tmp/
for FILE in ${DIRNAME}
do
sed 's/\/opt\/prog\//\/dev\//' < ${DIRNAME}/${FILE} > ${DIRNAME}/${FILE}.tmp
mv ${DIRNAME}/${FILE}.tmp ${DIRNAME}/${FILE}
rm ${DIRNAME}/${FILE}.tmp
done
exit 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 12:50 AM
12-22-2006 12:50 AM
Re: -rwsrwxr-x
> I wish to replace actually - '/opt/prog/' with '/dev/'
Using Perl, either escape the foward slash (which creates a hard-to-read "leaning toothpick") or change the substitution's delimiter (which Perl allows):
# cd /path && perl -pi -e 's/\/opt\/prog\//\/dev\//gi' *
or:
# cd /path && perl -pi -e 's%/opt/prog/%/dev/%gi' *
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2006 01:10 AM
12-22-2006 01:10 AM