473,597 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't do setuid and file permission denied

Thanks to Ingo for refering me to this group.

I'm a newbie with perl scripts and I'm having
problem running my copied script to my server. Can anybody who is
patient enough to help me with my problem?
I have a chpass.pl which is being executed by a change password web
utility page. This script tries to update a password on my linux
server /etc/shadow with a file permision rw------. my chpass.pl was
set to -rwsr-sr-x ,
with this file permission, I'm getting an error: Can't do setuid,
referer: http://.......
When I set the file permision of the chpass.pl to -rwsr-xr-x , I get
the error: file permision denied by the file /etc/shadow..
When I chmod 777 the /etc/shadow then everything works but I'm sure
its not safe to do that.. I cannot figure out how could I make this
work with the original file permission of the files shadow and
chpass.pl unchanged for I knew this was been working before with
another machine with almost a copycat of my server.

PLS..

Thanks...
Jul 19 '05 #1
1 6397
ch****@lu.csi.c om.ph (Chris) wrote in message news:<14******* *************** ****@posting.go ogle.com>...
Thanks to Ingo for refering me to this group.


Please tell Ingo that the correct group is
comp.lang.perl. misc
since this group is no longer a public group. You can also try
perl.beginners

You will get more responses from a public group. I can't answer your
questions, but I'm sure someone can in comp.lang.perl. misc. In the
meantime, it may help for you to take a look at
perldoc perlsec
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
13117
by: david | last post by:
Hi there, Does anybody know of some restriction that stops the apache user on doing a dos2unix on a file upload from php? I'm getting 'permission denied' on some temp file that it tries to create. I tried doing it from the command line by manually placing a fake upload file in /tmp: $ ls -ltr /tmp
3
8382
by: Michele Simionato | last post by:
I have a script that sometimes is run by myself (user id 501) and sometimes by the mailer program as nobody/nogroup (userid 65534). I would like to change the effective uid to 501 in any case, to get the right permissions, but os.setuid and os.seteuid give me a OSError No. 1. Is there a way to get what I want? My requirement is that the script should work indipendently from the mailer program, i.e I would like to avoid configuring the...
11
21084
by: Richard Muller | last post by:
Hi, I new to ASP. I have a problem with an ASP script opening a file for writing on my server. Here's how I got to this error: I downloaded a neat FileUpload ASP example from http://www.asp101.com/articles/jacob/scriptupload.asp. I copied to my wwwroot folder on my Win2000AS/SP4 server: - main .asp file
0
1181
by: Carlos | last post by:
I installed the MySQL package for mac 10.3 It seem that everything went fine until I try to run mysqld_safe to start the database I end up with a message Permission denied, does anybody know how to fix this. Below is a copy of the messages I get when I tray to run it. password% touch: /Library/MySQL/var/canons-Computer.local.err: Permission denied cat: /Library/MySQL/var/canons-Computer.local.pid: Permission denied
2
12873
by: Grzegorz ¦lusarek | last post by:
hello. I've code like this: var x =window.open('http://localhost/canvas.html','myokno') var w =x.width Permission denied to get property Window.width var w =x.innerWidth Permission denied to get property Window.innerWidth why i can get properties of new created window??? The second problem is much more important:
12
2411
by: D. Shane Fowlkes | last post by:
This most likely belongs in another forum but I thought I'd start here. I have a COM Object written in VB6. The DLL will access MS Excel and use it's Object Library to write a customized report and saves it to a folder. The DLL even writes to a log for each step it takes so we can troubleshoot the problems (if any). This works fine on one machine but not another. The folder the DLL is trying to write to has full permissions assigned...
0
1417
by: 123jainmin | last post by:
When I ran a perl script named script.pl which have the the follwing line: system("echo hostname = $HOSTNAME > /tmp/myinfo"); I have another shell script script.ksh which simply call script.pl within the script. the permission on script.ksh is: -rwsr-sr-x WHen I ran script.ksh, I got the error message: Insecure dependency in `` while running setuid at script.pl line 4. If I do not use $HOSTNAME in script.pl, I have no trouble at all. Could...
4
4335
by: Thelma Lubkin | last post by:
I need to copy a file in a VBA module of an Access form, and I haven't been able to find out how to do it: just cp /Path1/file1 /Path2/file2 Please show me how to do this in VBA for Windows. thanks, --thelma
5
15569
by: Brian | last post by:
Hi I have a problem in opening url using 'file'. I searched many other discussion groups and tried suggestions, but could not resolve this problem. e.g <?php $myfile = file('http://google.com'); foreach ( $myfile as $vals){
0
7969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7886
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1494
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.