You are not logged in.

#1 2011-01-14 18:59:30

Ockonal
Member
From: Ukraine
Registered: 2010-10-11
Posts: 48
Website

Change file access

Hello, how can I set access for /dev/console if I want to work with it as regular user.
I tried different arguments for chmod (a+rw in main), but after reloading it resets.

$ ls -l /dev/console
crw------- 1 root root 5, 1 Jan 14 20:44 /dev/console

What is the right way to change acces for that file?

$ groups
wheel network video audio optical floppy storage camera users

Last edited by Ockonal (2011-01-14 19:09:00)

Offline

#2 2011-01-14 20:03:22

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: Change file access

I guess that you mean after booting when you say reload? /dev/console is created new at each boot so permissions won't be retained on it. You can put your chmod command in /etc/rc.local so it is applied every time you boot up if you want to


You're just jealous because the voices only talk to me.

Offline

#3 2011-01-14 20:04:16

Ockonal
Member
From: Ukraine
Registered: 2010-10-11
Posts: 48
Website

Re: Change file access

moetunes, okay, but anyway I can't edit it with regular user even before reloding computer.

Offline

#4 2011-01-14 20:20:30

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: Change file access

Ockonal wrote:

moetunes, okay, but anyway I can't edit it with regular user even before reloding computer.

I did

 sudo chmod -v a+rw /dev/console 

and now permissions are

 crw-rw-rw- 1 root root 5, 1 Jan 14 15:45 /dev/console 

do your permissions change but you still can't write to it or do they not change at all?


You're just jealous because the voices only talk to me.

Offline

#5 2011-01-14 21:18:02

Ockonal
Member
From: Ukraine
Registered: 2010-10-11
Posts: 48
Website

Re: Change file access

Seems that I have to add my user into tty group.

Offline

Board footer

Powered by FluxBB