LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2013, 03:06 PM   #1
tpprynn
Member
 
Registered: Oct 2013
Location: Kent, UK
Distribution: Debian
Posts: 63

Rep: Reputation: 0
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.
 
Old 11-04-2013, 08:26 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Perhaps using inotify or some helper daemons such as inotifyd or incrond will help you to figure out what is accessing what when you're using your system.... That's one of the few ways I know one could track what is going on in the filesystem to the depth which you are asking.

If you're using LVM for your filesystems you can take a snapshot of your root file system before making any changes. That way if you mess up you can revert the snapshot back without too much hassle (much less hassle than a complete reinstall).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
chmod u+x /usr/bin/lptout does not work for not su - user cwc Fedora 3 08-03-2010 12:34 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration