Re: PHP doubts
From: James Kosin (jkosin_at_beta.intcomgrp.com)
Date: 03/31/05
- Previous message: Chris Jones: "Re: nscd (and NetworkManager) 100% cpu problem"
- In reply to: Rajiv: "PHP doubts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Mar 2005 10:57:54 -0500 To: For users of Fedora Core releases <fedora-list@redhat.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rajiv wrote:
| Dear All,
| But I am unable to add a samba user using a similar script
|
| <?php
| $password="pass";
| $volumesp = popen("smbpasswd -a user1", "w");
| fputs($volumesp,$password."\n");
| fputs($volumesp,$password."\n");
| pclose($volumesp);
| ?>
|
| # php sample.php - I am have to enter the password 2 times like I
| do in command line.
|
| I am also facing the same problem with smbadduser instead of
| smbpasswd command. Infact these are the only commands I am facing
| problems executing in PHP scripts.
You probably will for some time to come. Some of the commands like
adding a user can only be done as root. Changing an existing password
with the php script should work for any user. Adding a user requires
special privaledges.
(1) Check to see if there is a php command that allows you to open or
run an application as another user.
(2) Check out the swat service for samba. They may hold a clue as to
how you can do this. Although, I think swat is an application that
serves up web pages.
|
|
| I agree - this may not be the right list for this question - Pls
| help me in troubleshooting this problem or atlest help me guiding to
| the right list.
|
|
| Regards,
| Rajiv
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCTB4CkNLDmnu1kSkRAs/1AJ9PtBq4VbUuu7/80Q5pz7cm2iJ2WQCeOQk1
/nqq7QSkxjHPp6aCs7/CZeo=
=rGsZ
-----END PGP SIGNATURE-----
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Chris Jones: "Re: nscd (and NetworkManager) 100% cpu problem"
- In reply to: Rajiv: "PHP doubts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|