Permissions?

General support for the Pi-Star System
Post Reply
KN2TOD
Posts: 9
Joined: Sun Nov 11, 2018 6:36 pm

Permissions?

Post by KN2TOD » Mon Nov 12, 2018 1:38 am

Trying to update the MMDVM.ini file but can not find it! I seem to be missing some permission or other.

In SSH, this is all I see:

[email protected](ro):~$ ls
[email protected](ro):~$ cd ..
[email protected](ro):home$ ls
mmdvm pi-star
[email protected](ro):home$ cd mmdvm
[email protected](ro):mmdvm$ ls
[email protected](ro):mmdvm$

w7efs
Posts: 96
Joined: Sun Apr 22, 2018 4:26 pm

Re: Permissions?

Post by w7efs » Mon Nov 12, 2018 4:30 pm

KN2TOD wrote:
Mon Nov 12, 2018 1:38 am
Trying to update the MMDVM.ini file but can not find it!
That's because it doesn't exist. What you're looking for is /etc/mmdvmhost, and if you're not comfortable editing it as root from the ssh command line (after making a backup copy, of course), use the "Expert" editor on the Configuration page.
I seem to be missing some permission or other. ...
Why do you think the problem is "permissions"? Please copy-n-paste into your reply what you're seeing to make you think that. The "(ro)" prompt in your command line examples means the filesystem is currently "read only", which can be changed with the command "rpi-rw" ... the "Expert" editors will do that for you.

KN2TOD
Posts: 9
Joined: Sun Nov 11, 2018 6:36 pm

Re: Permissions?

Post by KN2TOD » Tue Nov 13, 2018 1:15 am

Ok, I think you've cleared up one issue for me. Numerous references point to a MMDVM.ini file (example: <https://github.com/PD0DIB/NextionDriver>) but if I understand what you're saying, this is incorporated into the MMDVMHOST file as a app-specific section.

It's confusing that the path to this file is not part of the path that SSH lands you at when you first log in. You have to back out to the root and drill down from there.

And when trying to use the FIND command to determine where a file, any file, is located, I get responses like this:

:
find: `/var/spool/cron/crontabs': Permission denied
find: `/var/spool/exim4': Permission denied
find: `/var/spool/rsyslog': Permission denied
find: `/var/www/dashboard/images': Permission denied
/var/www/dashboard/admin/mmdvmhost
/var/www/dashboard/mmdvmhost
find: `/var/www/dashboard/css': Permission denied
find: `/etc/chatscripts': Permission denied
find: `/etc/ssl/private': Permission denied
/etc/mmdvmhost
find: `/etc/ppp/peers': Permission denied
:

even though I'm in RW mode.

User avatar
KE0FHS
Posts: 360
Joined: Wed Apr 11, 2018 8:40 pm
Location: Colorado, USA
Contact:

Re: Permissions?

Post by KE0FHS » Tue Nov 13, 2018 1:37 am

Do some searching for Raspbian superuser or root user.
73, Toshen, KE0FHS
Playing with Pi-Star (unofficial notes about setting up and using Pi-Star):
http://pi-star.hamnotes.com

w7efs
Posts: 96
Joined: Sun Apr 22, 2018 4:26 pm

Re: Permissions?

Post by w7efs » Tue Nov 13, 2018 10:58 am

KN2TOD wrote:
Tue Nov 13, 2018 1:15 am
Ok, I think you've cleared up one issue for me. Numerous references point to a MMDVM.ini file (example: <https://github.com/PD0DIB/NextionDriver>) but if I understand what you're saying, this is incorporated into the MMDVMHOST file as a app-specific section.
No, the configuration file is called mmdvmhost. Linux is case-sensitive.
It's confusing that the path to this file is not part of the path that SSH lands you at when you first log in. You have to back out to the root and drill down from there.
You (and many others) would do better to learn the sense of how Unix/Linux works, which is beyond the scope of this forum. The Pi-Star team have done a great, a very great job of putting the power of Linux into the hands of those who don't really wish to learn about it though, so your best use of limited time might be to learn about Pi-Star by exploring these forums. When you feel comfortable making and recovering from mistakes then the Expert section of the Configuration page is a good place to start, as previously mentioned.

A web search for "linux 101" might be helpful as well.

ct1dvm
Posts: 125
Joined: Thu Apr 19, 2018 6:34 am

Re: Permissions?

Post by ct1dvm » Tue Nov 13, 2018 12:11 pm

KN2TOD wrote:
Mon Nov 12, 2018 1:38 am
Trying to update the MMDVM.ini file but can not find it! I seem to be missing some permission or other.

In SSH, this is all I see:

[email protected](ro):~$ ls
[email protected](ro):~$ cd ..
[email protected](ro):home$ ls
mmdvm pi-star
[email protected](ro):home$ cd mmdvm
[email protected](ro):mmdvm$ ls
[email protected](ro):mmdvm$
Yes pistar mmdvmhost is recompiled with custom changes.

with ssh access ;

rpi-rw

sudo nano /etc/mmdvmhost

will edit what was formally known as MMDVM.ini on the usual github version.

AF6VN
Posts: 76
Joined: Fri Jul 20, 2018 1:15 am

Re: Permissions?

Post by AF6VN » Tue Nov 13, 2018 5:32 pm

KN2TOD wrote:
Tue Nov 13, 2018 1:15 am

And when trying to use the FIND command to determine where a file, any file, is located, I get responses like this:

:
find: `/var/spool/cron/crontabs': Permission denied
find: `/var/spool/exim4': Permission denied
find: `/var/spool/rsyslog': Permission denied
find: `/var/www/dashboard/images': Permission denied
/var/www/dashboard/admin/mmdvmhost
/var/www/dashboard/mmdvmhost
find: `/var/www/dashboard/css': Permission denied
find: `/etc/chatscripts': Permission denied
find: `/etc/ssl/private': Permission denied
/etc/mmdvmhost
find: `/etc/ppp/peers': Permission denied
:

even though I'm in RW mode.
RW vs RO has nothing to do with that... Many files may be protected from regular user accounts, so would get "permission denied"

Run your /find/ command prefixed with /sudo/

sudo find ...

--
AF6VN
Dennis L Bieber

Post Reply