On Jun 2, 2:19 am, Denis McMahon wrote:
> On Fri, 31 May 2013 02:12:58 -0700, BIBHU DAS wrote:
> > Any Idea how to create a file in /etc as non-root user?Can i use umask
> > or chmod...confused
>
> If you don't have root access, you probably shouldn't be trying to write
> in /etc. If you need
On Fri, 31 May 2013 02:12:58 -0700, BIBHU DAS wrote:
> Any Idea how to create a file in /etc as non-root user?Can i use umask
> or chmod...confused
If you don't have root access, you probably shouldn't be trying to write
in /etc. If you need to write in /etc, explain to the sysadmin why you
On May 31, 7:42 pm, Chris Angelico wrote:
> On Sat, Jun 1, 2013 at 12:02 AM, Alister wrote:
> > /etc is used to store configuration files for the operating system & if
> > you inadvertently corrupt the wrong one then you could kill the system.
>
> Expanding on this:
>
> http://en.wikipedia.org/wi
On 2013-06-01 01:20, Nobody wrote:
> On Fri, 31 May 2013 02:12:58 -0700, BIBHU DAS wrote:
> > Any Idea how to create a file in /etc as non-root user?
>
> This should not be possible. The language used is irrelevant.
It's theoretically possible to pre-create the file (or a
subdirectory) in /etc as
On Fri, 31 May 2013 02:12:58 -0700, BIBHU DAS wrote:
> I am a python novice;request all to kindly bear with me.
>
> fd = open('/etc/file','w')
> fd.write('jpdas')
> fd.close()
>
>
> The above snippet fails with:
> IOError: [Errno 13] Permission denied: '/etc/file'
As it should.
> Any Idea ho
On Sat, Jun 1, 2013 at 12:02 AM, Alister wrote:
> /etc is used to store configuration files for the operating system & if
> you inadvertently corrupt the wrong one then you could kill the system.
Expanding on this:
http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
The FHS applies to Li
On Fri, 31 May 2013 07:11:58 -0400, Dave Angel wrote:
> On 05/31/2013 05:27 AM, Luca Cerone wrote:
>>> fd = open('/etc/file','w')
>>>
>>> fd.write('jpdas')
>>>
>>> fd.close()
>>>
>>>
>> Hi Bibhu, that is not a Python problem, but a permission one.
>> You should configure the permissions so that yo
On 05/31/2013 05:27 AM, Luca Cerone wrote:
fd = open('/etc/file','w')
fd.write('jpdas')
fd.close()
Hi Bibhu, that is not a Python problem, but a permission one.
You should configure the permissions so that you have write access to the
folder.
However unless you know what you are doing it is
> fd = open('/etc/file','w')
>
> fd.write('jpdas')
>
> fd.close()
>
>
Hi Bibhu, that is not a Python problem, but a permission one.
You should configure the permissions so that you have write access to the
folder.
However unless you know what you are doing it is discouraged to save your
file i
I am a python novice;request all to kindly bear with me.
fd = open('/etc/file','w')
fd.write('jpdas')
fd.close()
The above snippet fails with:
Jagannath-MacBook-Pro:~ jpdas$ python testUmask.py
Traceback (most recent call last):
File "testUmask.py", line 3, in
fd = open('/etc/file','w')
10 matches
Mail list logo