Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Alexandru-Emil Lupu
A stupid ideea: launch your nb using sudo. So, you do not need to exec your
task using sudo :)
Anyway, the chown is your friend.

sent via htc magic

On Dec 28, 2009 3:52 PM, mattsister matt...@gmail.com wrote:

My question is:
Why you have to be super user to deal with your own code? I think you
should change the ownership of the project folder and make it
yours!!! :)

On 27 Dic, 19:51, tirengarfio tirengar...@gmail.com wrote:  Hi,   i
have installed Netbeans wi...

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Nathan Bijnens
This is a very bad idea...! Never run a program with more permissions than
it needs to have.

You could maybe create a bash wrapper that calls sudo symfony? And put this
in the right path?

Nathan

On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu
gang.al...@gmail.comwrote:

 A stupid ideea: launch your nb using sudo. So, you do not need to exec your
 task using sudo :)
 Anyway, the chown is your friend.

 sent via htc magic

 On Dec 28, 2009 3:52 PM, mattsister matt...@gmail.com wrote:

 My question is:
 Why you have to be super user to deal with your own code? I think you
 should change the ownership of the project folder and make it
 yours!!! :)

 On 27 Dic, 19:51, tirengarfio tirengar...@gmail.com wrote:  Hi,   i
 have installed Netbeans wi...

  --
 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.


--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread tirengarfio
Thanks!

On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:

 You could maybe create a bash wrapper that calls sudo symfony? And put this
 in the right path?

Could you more details ?

Javi


On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:
 This is a very bad idea...! Never run a program with more permissions than
 it needs to have.

 You could maybe create a bash wrapper that calls sudo symfony? And put this
 in the right path?

 Nathan

 On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu
 gang.al...@gmail.comwrote:

  A stupid ideea: launch your nb using sudo. So, you do not need to exec your
  task using sudo :)
  Anyway, the chown is your friend.

  sent via htc magic

  On Dec 28, 2009 3:52 PM, mattsister matt...@gmail.com wrote:

  My question is:
  Why you have to be super user to deal with your own code? I think you
  should change the ownership of the project folder and make it
  yours!!! :)

  On 27 Dic, 19:51, tirengarfio tirengar...@gmail.com wrote:  Hi,   i
  have installed Netbeans wi...

   --
  You received this message because you are subscribed to the Google Groups
  symfony users group.
  To post to this group, send email to symfony-us...@googlegroups.com.
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Stéphane
Hi,
You should really avoir loging in as root, and see why you need to.
If this is real IS problem, ok. If it's just a permission right need, then
just move your configuration statements from /var/www to /home/$user/www, a
place where you can read/write/execute whatever.

About wrapping calls: you'll have to write your own shell script being
callable from command line (accessible from PATH), write to it something
like sudo $1 and tell netbeans to use this file in NB Symfony config tab.

Cheers

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio tirengar...@gmail.com wrote:

 Thanks!

 On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:

  You could maybe create a bash wrapper that calls sudo symfony? And put
 this
  in the right path?

 Could you more details ?

 Javi


 On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:
  This is a very bad idea...! Never run a program with more permissions
 than
  it needs to have.
 
  You could maybe create a bash wrapper that calls sudo symfony? And put
 this
  in the right path?
 
  Nathan
 
  On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu
  gang.al...@gmail.comwrote:
 
   A stupid ideea: launch your nb using sudo. So, you do not need to exec
 your
   task using sudo :)
   Anyway, the chown is your friend.
 
   sent via htc magic
 
   On Dec 28, 2009 3:52 PM, mattsister matt...@gmail.com wrote:
 
   My question is:
   Why you have to be super user to deal with your own code? I think you
   should change the ownership of the project folder and make it
   yours!!! :)
 
   On 27 Dic, 19:51, tirengarfio tirengar...@gmail.com wrote:  Hi,  
 i
   have installed Netbeans wi...
 
--
   You received this message because you are subscribed to the Google
 Groups
   symfony users group.
   To post to this group, send email to symfony-us...@googlegroups.com.
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en.

 --

 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.




--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Nathan Bijnens
Hello Javi,

Rename your symfony script in the project dir to symfony.real

paste this to a new file called symfony
#!/bin/bash

sudo symfony.real $@


that's about it.

Warning this is not tested! This will not work in windows!

regards,
  Nathan

On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio tirengar...@gmail.com wrote:

 Thanks!

 On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:

  You could maybe create a bash wrapper that calls sudo symfony? And put
 this
  in the right path?

 Could you more details ?

 Javi


 On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:
  This is a very bad idea...! Never run a program with more permissions
 than
  it needs to have.
 
  You could maybe create a bash wrapper that calls sudo symfony? And put
 this
  in the right path?
 
  Nathan
 
  On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu
  gang.al...@gmail.comwrote:
 
   A stupid ideea: launch your nb using sudo. So, you do not need to exec
 your
   task using sudo :)
   Anyway, the chown is your friend.
 
   sent via htc magic
 
   On Dec 28, 2009 3:52 PM, mattsister matt...@gmail.com wrote:
 
   My question is:
   Why you have to be super user to deal with your own code? I think you
   should change the ownership of the project folder and make it
   yours!!! :)
 
   On 27 Dic, 19:51, tirengarfio tirengar...@gmail.com wrote:  Hi,  
 i
   have installed Netbeans wi...
 
--
   You received this message because you are subscribed to the Google
 Groups
   symfony users group.
   To post to this group, send email to symfony-us...@googlegroups.com.
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en.

 --

 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.




--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread tirengarfio
Hi Nathan,

this happens: i have done what you say and after that NB doesn't show
the list of sf tasks when i go to Symfony  Run command. No problem
without the change you propose. I tested 2 or 3 times.


Javi



On Dec 28, 9:50 pm, Nathan Bijnens nbijn...@servs.eu wrote:
 Hello Javi,

 Rename your symfony script in the project dir to symfony.real

 paste this to a new file called symfony
 #!/bin/bash

 sudo symfony.real $@

 that's about it.

 Warning this is not tested! This will not work in windows!

 regards,
   Nathan

 On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio tirengar...@gmail.com wrote:
  Thanks!

  On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:

   You could maybe create a bash wrapper that calls sudo symfony? And put
  this
   in the right path?

  Could you more details ?

  Javi

  On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote:
   This is a very bad idea...! Never run a program with more permissions
  than
   it needs to have.

   You could maybe create a bash wrapper that calls sudo symfony? And put
  this
   in the right path?

   Nathan

   On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu
   gang.al...@gmail.comwrote:

A stupid ideea: launch your nb using sudo. So, you do not need to exec
  your
task using sudo :)
Anyway, the chown is your friend.

sent via htc magic

On Dec 28, 2009 3:52 PM, mattsister matt...@gmail.com wrote:

My question is:
Why you have to be super user to deal with your own code? I think you
should change the ownership of the project folder and make it
yours!!! :)

On 27 Dic, 19:51, tirengarfio tirengar...@gmail.com wrote:  Hi,  
  i
have installed Netbeans wi...

 --
You received this message because you are subscribed to the Google
  Groups
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/symfony-users?hl=en.

  --

  You received this message because you are subscribed to the Google Groups
  symfony users group.
  To post to this group, send email to symfony-us...@googlegroups.com.
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Zeek


On Dec 27, 2:36 pm, tirengarfio tirengar...@gmail.com wrote:
 The only way i know to avoid writing sudo is logging in the
 operative system as root. But i dont want to logging as root.

 Is there anyone more?



Log in as root and change the permissions so that you no longer have
to log in as root to call the task. Isn't this how you would handle
any permissions issue on our machine?

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-27 Thread tirengarfio
The only way i know to avoid writing sudo is logging in the
operative system as root. But i dont want to logging as root.

Is there anyone more?


On Dec 27, 8:01 pm, Andrei Dziahel trickster...@gmail.com wrote:
 Hi.

 Do not call them with sudo. Like I do.

 2009/12/27 tirengarfio tirengar...@gmail.com



  Hi,

  i have installed Netbeans with symfony support.

  As maybe you know with this support you can execute the symfony tasks
  from Netbeans.

  The problem: the tasks are executed without the sudo before, so the
  errors appear..

  Any solution?

  Bye

  Javi

  --

  You received this message because you are subscribed to the Google Groups
  symfony users group.
  To post to this group, send email to symfony-us...@googlegroups.com.
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

 --
 With the best regards, Andrei.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-27 Thread Andrei Dziahel
I'm storing my sources in home directory. Also I've added myself to www-data
group. This allows me to avoid sudoing symfony.

2009/12/27 tirengarfio tirengar...@gmail.com

 The only way i know to avoid writing sudo is logging in the
 operative system as root. But i dont want to logging as root.

 Is there anyone more?


 On Dec 27, 8:01 pm, Andrei Dziahel trickster...@gmail.com wrote:
  Hi.
 
  Do not call them with sudo. Like I do.
 
  2009/12/27 tirengarfio tirengar...@gmail.com
 
 
 
   Hi,
 
   i have installed Netbeans with symfony support.
 
   As maybe you know with this support you can execute the symfony tasks
   from Netbeans.
 
   The problem: the tasks are executed without the sudo before, so the
   errors appear..
 
   Any solution?
 
   Bye
 
   Javi
 
   --
 
   You received this message because you are subscribed to the Google
 Groups
   symfony users group.
   To post to this group, send email to symfony-us...@googlegroups.com.
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en.
 
  --
  With the best regards, Andrei.

 --

 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.





-- 
With the best regards, Andrei.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.