Re: [CentOS] Wrong file permissions in CentOS 7

2014-10-10 Thread Alan Stern
On Fri, 10 Oct 2014, Alan Stern wrote: > On Fri, 10 Oct 2014, Mike wrote: > > > On Fri, 10 Oct 2014, Alan Stern wrote: > > > > > Sorry if this question has been asked many times before. > > > > > > On a new CentOS 7 system, when I create files they end up with strange > > > permissions. For exa

Re: [CentOS] Wrong file permissions in CentOS 7

2014-10-10 Thread Alan Stern
On Fri, 10 Oct 2014, Mike wrote: > On Fri, 10 Oct 2014, Alan Stern wrote: > > > Sorry if this question has been asked many times before. > > > > On a new CentOS 7 system, when I create files they end up with strange > > permissions. For example, as root: > > > > [root@server ~]# umask > > >

Re: [CentOS] Wrong file permissions in CentOS 7

2014-10-10 Thread Mike
On Fri, 10 Oct 2014, Alan Stern wrote: Sorry if this question has been asked many times before. On a new CentOS 7 system, when I create files they end up with strange permissions. For example, as root: [root@server ~]# umask [root@server ~]# touch a [root@server ~]# ls -l a -r--r- 1

Re: [CentOS] Wrong file permissions in CentOS 7

2014-10-10 Thread Alan Stern
On Fri, 10 Oct 2014, Hal Wigoda wrote: > Change the umask in the .bash_profile for root. Since the umask is already set to , I don't see how changing it will make any difference. Besides, I _did_ change it by hand, just before the start of the example. And lastly, changing root's bash_pro

Re: [CentOS] Wrong file permissions in CentOS 7

2014-10-10 Thread Hal Wigoda
Change the umask in the .bash_profile for root. On Fri, Oct 10, 2014 at 11:55 AM, Alan Stern wrote: > Sorry if this question has been asked many times before. > > On a new CentOS 7 system, when I create files they end up with strange > permissions. For example, as root: > > [root@server ~]# umas

[CentOS] Wrong file permissions in CentOS 7

2014-10-10 Thread Alan Stern
Sorry if this question has been asked many times before. On a new CentOS 7 system, when I create files they end up with strange permissions. For example, as root: [root@server ~]# umask [root@server ~]# touch a [root@server ~]# ls -l a -r--r- 1 root root 0 Oct 10 11:45 a As a regular u