Bad attributes for some files in /etc

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Mon Jul 26, 2021 7:22    Post subject: Bad attributes for some files in /etc Reply with quote
I understood that /etc is always read-only, but these 3 files should not have the execute bit set:

Code:

root@HOSTNAME:/etc# /opt/bin/find *.conf -type f -executable
minidlna.conf
rfc6761.conf
trust-anchors.conf
root@HOSTNAME:/etc# ls -l minidlna.conf
-rwxr-xr-x    1 root     root          4193 Jul 22 03:47 minidlna.conf

The worst was minidlna.conf, which for a moment, had a mode of 777! I cannot reproduce what I saw though. I really saw it.... Smile

BTW, I think /etc/minidlna.conf was NOT generated and followed corresponding MiniDLNA settings in WEBUI.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14223
Location: Texas, USA

PostPosted: Mon Jul 26, 2021 14:47    Post subject: Reply with quote
What is under the directory listing of /tmp? That will point you in the correct direction, perhaps.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Mon Jul 26, 2021 15:27    Post subject: Reply with quote
kernel-panic69 wrote:
What is under the directory listing of /tmp? That will point you in the correct direction, perhaps.


I was confused again. DD-WRT is using /tmp not /etc... I was by habbit thinking about standard Linux convention.

But is it a good idea as /tmp is NOT read-only! It's great for programmers to debug source codes though. "tmp" should always be about temporary stuffs. It's more logical/natural for system-generated config files to go into /etc.

Anyway, you always login as root. Smile

Thanks! Thanks....

Again, the server name "friendly_name" of MiniDLNA is using Setup -> Basic Setup -> Optional Settings -> Hostname(?), means it's coupled with Samba....


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Tue Jul 27, 2021 1:21    Post subject: Reply with quote
Well, the embedded world is different as /tmp is located in RAM.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum