chmod... to make something in /usr/bin run after without sudo
I'm trying to retrace my steps with something. I have Debian Wheezy installed on a pc, a netbook and now the Raspberry Pi, all using the minimal DWM window manager. I use wvdial to connect and had been starting it with 'sudo wvdial' until finding I could alter the permissions of /usr/bin/wvdial to let it run after only entering 'wvdial'. I had thought I'd used 'chmod u+s /usr/bin/wvdial' but that hasn't worked on the Pi. It may be that wvdial is starting but then is blocked from starting ppp due to ppp's permissions. I'm sure I didn't change any other permissions before so was 'chmod u+s...' correct or should it have been 'chown...' or 'chmod a+x...?'
Initially the Pi is setup without the ability to use su and sudo doesn't require a password, so maybe this explains it in some way.
I'm tempted to change the permissions of other files but don't yet know how many this might involve and don't fancy ending up having to reinstall if things get messy, after such a custom setup as I'd pursued.
Thanks for any replies.
Last edited by tpprynn; 11-04-2013 at 03:08 PM.
|