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 at server ~]# umask 0000 [root at server ~]# touch a [root at server ~]# ls -l a -r--r----- 1 root root 0 Oct 10 11:45 a As a regular user: [stern at server ~]$ umask 0000 [stern at server ~]$ touch b [stern at server ~]$ ls -l b -rw------- 1 stern stern 0 Oct 10 11:47 b In both cases the permsissions should have been -rw-rw-rw-. What on earth is going on, and how can I fix it? Thanks, Alan Stern
Change the umask in the .bash_profile for root. On Fri, Oct 10, 2014 at 11:55 AM, Alan Stern <stern at rowland.harvard.edu> 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 at server ~]# umask > 0000 > [root at server ~]# touch a > [root at server ~]# ls -l a > -r--r----- 1 root root 0 Oct 10 11:45 a > > As a regular user: > > [stern at server ~]$ umask > 0000 > [stern at server ~]$ touch b > [stern at server ~]$ ls -l b > -rw------- 1 stern stern 0 Oct 10 11:47 b > > In both cases the permsissions should have been -rw-rw-rw-. What on > earth is going on, and how can I fix it? > > Thanks, > > Alan Stern > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-- ----------------- Hal Wigoda Chicago
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 at server ~]# umask > 0000 > [root at server ~]# touch a > [root at server ~]# ls -l a > -r--r----- 1 root root 0 Oct 10 11:45 a > > As a regular user: > > [stern at server ~]$ umask > 0000 > [stern at server ~]$ touch b > [stern at server ~]$ ls -l b > -rw------- 1 stern stern 0 Oct 10 11:47 b > > In both cases the permsissions should have been -rw-rw-rw-. What on > earth is going on, and how can I fix it? > > Thanks, > > Alan Stern > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >I'm sure I don't have an answer, but the last time I saw something like that the problem was related to a fat or vfat file system (I believe). What type of filesystem is "/"? What is the output from 'df -Th' ?
Maybe Matching Threads
- Preserving ext2-4 attributes
- Re: problems with usb stick after suspend and wake up
- Re: problems with usb stick after suspend and wake up
- patching asterisk with tzafrir patch for voicemail permission does not work
- [PATCH, v3] fix build with XEN and EARLY_PRINTK_DBGP enabled but USB_SUPPORT disabled