Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 19:16
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Why don't I have permission to write to system files?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
cetlasdfghjkl

Joined: 15 Nov 2012
Posts: 3

PostPosted: Thu 15 Nov 2012, 19:46    Post subject:  Why don't I have permission to write to system files?
Subject description: Error occurs when attempting to write to system folders.
 

I have a full hard drive installation of Lucid Puppy 5.25.

The following command generates a very unhelpful error:

Code:
#mkdir /sys/hello
mkdir: cannot create directory '/sys/hello/': No such file or directory


Similar results occur when attempting to copy files to the /sys/ directory.

Aren't I root on Puppy by default? How then is modifying the /sys/ directory on Puppy forbidden?
Back to top
View user's profile Send private message 
puppyluvr


Joined: 06 Jan 2008
Posts: 3229
Location: Chickasha Oklahoma

PostPosted: Thu 15 Nov 2012, 19:52    Post subject:  

Very Happy Hello,
LOL..
/sys is a mount point..
Try /root or /usr or almost anything else. Cool

_________________
Close the Windows, and open your eyes, to a whole new world
http://puppylinuxstuff.meownplanet.net/puppyluvr/
Puppy Linux Users Group on Facebook

Puppy since 2.15CE...
Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3398
Location: Oregon

PostPosted: Thu 15 Nov 2012, 19:58    Post subject:  

Also, properties for /sys show that it is writable.
But only if all directories are closed.
If you really want to put something in the /sys file for some reason, you could try the "editsfs" utility to open that SFS file for editing, add your file, and the SFS supposedly would be remade with your file present.
But humor us and tell us why on earth you would want to put anything into the /sys directory.
There is no advantage to doing that.
Back to top
View user's profile Send private message 
cetlasdfghjkl

Joined: 15 Nov 2012
Posts: 3

PostPosted: Fri 16 Nov 2012, 05:16    Post subject: Why write to sys? Because no one knows how to.  

The reason I want to write to /sys is because I don't know how to.

A secondary reason, is that no other linux users seem to know how to.

If these don't seem like excellent reasons to you, I guarantee you that you haven't fully considered the potential benefits of such knowledge. The mere fact that most linux users consider writing to this directory impossible, and only a select few actually know how to do it, has great potential application.

Reading a little, it seems as though /sys does not exist on the actual hard disk, but is actually just loaded in memory. My question is simply this: has anyone ever actually modified the contents of the /sys directory? If so, can you explain, step by step, how to accomplish such a feat?
Back to top
View user's profile Send private message 
cetlasdfghjkl

Joined: 15 Nov 2012
Posts: 3

PostPosted: Fri 16 Nov 2012, 23:14    Post subject:  

bumpity bump
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3398
Location: Oregon

PostPosted: Sat 17 Nov 2012, 03:45    Post subject:  

If you are still insistent on trying to put files in the /sys directory and want to see what happens, here is how you would do it.
You first need more than one frugal install of Puppy on your hard drive complete with pupsave files.
(1) Boot one version of Puppy.
(2) Mount the pupsave from the other version of Puppy by clicking on it.
(3) Click on the /mnt/puppy_version/pupsave/sys directory.
(4) Copy or place files in it.
(5) Unmount the pupsave file again by clicking on it.
(6) Boot that version of Puppy to see if the file you placed there still exists.

If the file you put in /sys exists you will have figured out to place files in /sys on a frugal install.

If it does not exist, you know that the /sys directory gets created and populated on every boot of Puppy.
Also, the contents will differ from PC to PC depending on the hardware.

And bumping your post gains you nothing but irritating people.
The instructions I gave you are actually just to give you something to do to satisfy your interest.
A better thing would be to research articles on the structure of linux and how each part of it is associated with other parts to gain a functioning OS.
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Sat 17 Nov 2012, 03:50    Post subject:  

Quote:
The mere fact that most linux users consider writing to this directory impossible, and only a select few actually know how to do it, has great potential application.


Could you elaborate these "great potentials".

I think /sys does it job just fine already. I cant imagine that stuffing stuff there which does not belong there would benefit much.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0592s ][ Queries: 11 (0.0092s) ][ GZIP on ]