General :: Changing Default UMASK Value?

Jan 15, 2010

I am attempting to modify the default umask value under all accounts on my linux system to 002. This will hopefully allow both the account and the account's group access to the created files.

I have modified it within /etc/bashrc, however it seems to be making no difference on this default value. The files I create through "File Browser" all have the access rights set to 600.

Is there any error here, as all evidence I can find on the internet points to the bashrc file.

View 1 Replies


ADVERTISEMENT

General :: Set Default Umask For Users?

Jan 4, 2010

I think the following code is trying to change the settings inside the file:

CISum=077
sed -e "s/002/$CISum/" -e "s/022/$CISum/" /etc/bashrc-preCIS > /etc/bashrc
sed -e "s/002/$CISum/" -e "s/022/$CISum/" /etc/csh.cshrc-preCIS > /etc/csh.cshrc

[code].....

But, what if i only want to check what the settings are inside the file, but does not want any changes to the file.

View 1 Replies View Related

General :: Concept Of Umask - Default File And Directory Permissions

Apr 14, 2010

I am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?

- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that session and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?
- Can we make our own umask or the professional way is to follow 022 only ?
- What is the benefit of umask in Linux?

View 2 Replies View Related

General :: Umask And Permissions - Has Umask 007 Bad Side Effects?

Mar 16, 2011

My Debian system has by default umask permissions of 0022, which I never liked. One user can read all the files of another seems very insecure to me.

I am planing to set it to 007, so that user and group have rw but all others have none.

Are there any side effects to that? I have noticed from a trial I did where I was changing permissions on the filesystem that some system stuff in the OS does not work anymore, if "others" have no read permission anymore, so that is why I am asking.

And why are chmod / umask permissions sometimes stated as 4 digits? What is this "all" group in the end? Isn't that already covered by "others"?

View 1 Replies View Related

Security :: Group Write Access For Newly Created Files / Directories Without Changing Umask

Apr 3, 2009

I have several directories, each owned by root and a group of the same name,By setting the sgid bit, I made sure that newly created files and directories are owned by the correct group, and that directories have the sgid bit set too.On each newly created directory or file, the permissions are set to 755. This is because this is the default umask, and I cannot change a users umask. I actually only want files created below a particular directory to have group write access, inheriting this behaviour to newly created directories properly.I'm not on samba or NFS, I have to do this for SSH users.The filesystem is ext3.I started to fool around with ACLs, but couldn't find what I was looking for.

View 3 Replies View Related

General :: Umask And /usr/bin/umask ?

Apr 25, 2011

Not sure if this is the right place to ask this question. In Solaris we have umask (shell builtin) and /usr/bin/umask. However I could not find /usr/bin/umask in Linux.

I want to know the difference between both and how can we achieve the functionality of /usr/bin/umask in Linux as its not there...

View 6 Replies View Related

General :: Changing The Default Welcome Message?

Nov 22, 2010

When the computer boots in Slackware 13.1 i get the default welcome message: "Welcome to Linux 2.6.33.4-smp (tty1)". How do i change it?

View 2 Replies View Related

General :: Changing SSH Default Port?

Apr 20, 2010

is it a bad idea to change SSH's default port (22) to a different port number

View 5 Replies View Related

General :: Changing Mysql Default Port?

Jul 19, 2011

I'm trying to change the default mysql port with no success. I looked at my.cnf file and there's no reference to port. I also looked at the iptables and mysql is running on 3306 (default).I've changed the iptable file but mysql fails to restart.If I add port = [my port number] to the my.cnf file, mysql fails to start.

View 4 Replies View Related

General :: Changing Default User Start Directory?

Jul 4, 2009

I would like to change the start directory, the directory at which ftp/shell points to when the user logs in.

View 1 Replies View Related

General :: Changing Default Audio Device In Pulseaudio?

Jun 5, 2011

I would like to use HDMI on my graphic card for audio output. ALSA shows it as a card with 4 devices and I can get sound through one of them (the other three are different channels, perhaps? I have only stereo output connected). Although Pulseaudio has the right card set as default, it seems to me that it plays on a wrong device. Pacmd shows that the sink has parameter alsa.device set to the first device listed by ALSA, but I can get sound only from the second one.How can I force Pulseaudio to use another device of the same card as a default output?

View 2 Replies View Related

Ubuntu :: Changing Default Studio Appearance To Default?

Sep 28, 2010

I was using ubuntu 10.04 till yesterday.. and due to hdd crash i have changed my hdd.

while looking for my installation disc, my wall-mate gives me this Ubuntu Studio dvd and instead of downloading a new one, i have installed the studio. at the first sight ... i am being a fond of studio version .. its really cool.

now, i am quite habituated with default appearance of ubuntu, i found studio appearance is quite unusual (for me, menu layouts, panel everything).

I would like to know how do i change this default appearance like ubuntu default 10.04 appearance. I am attaching a screen-shoot of my friends desktop, he upgraded his ubuntu thru apptitude update.

View 9 Replies View Related

General :: Changing The Default Application To Open Files - Ubuntu 11.04

Jun 30, 2011

I want to change the application that opens my mp3 files.

At present if I double click an mp3 it opens in the movie viewer for some reason. I know I can use "open with..." to get a file to open in Rythymbox instead, but I have over 800 mp3 files and want to change the default for all of them.

View 1 Replies View Related

General :: Changing Grub Boot Order And Make Win7 Default

Aug 13, 2010

I recently upgraded to Ubuntu 10.04 from earlier versions. I have a dual boot system with Windows 7. Grub was set to boot Windows by default Things were working fine. I decided to upgrade to Grub2. It seemed like a good idea at the time. Now when booting up,the name at the top of the Grub menu is 1.98, which is Grub 2. When I run grub-install -v, it comes back grub-install (GNU GRUB 0.97) which is not Grub2. Now when I boot up, Ubuntu 10.04 is the default. I have to manually choose Windows if I want to use that system. I have been unable to change the boot order following instructions from this site. Any Way changing the boot order to make Windows 7 the default. I am using a Toshiba Satellite.

View 5 Replies View Related

General :: Umask Change ?

Jun 7, 2011

I have logged in with root user

My systems Umask value was 0022.

Code:

So i decided to change it to 0077 and observe the system for some time. so i edited /etc/profile and added

Code:

at the end of file

rebooted the machine.

But the umask is still showing as 0022

After the first attempt is failed I tried changing it using below command.

Code:

Validated it.

Code:

rebooted the machine but the umask is still showing 0022

So at last i have to modify /etc/bashrc file and add umask 077 at the end of the file.

How would i make it in general for all(Even for non-root user) and not just for bash prompt.

View 4 Replies View Related

General :: Get Umask For All Users Using Script?

Feb 16, 2010

I am writing a bash script for auditing a Linux System. One of the points to capture is the umask of the users in the system.
Though a 'umask' command executed by the respective user gives this value, i am not sure how to get this in a script, which would be run with root credentials. This my be pretty easy, but i am not sure how root can find this for say 'user-x' (except say peeking into /etc/bashrc).

umask doesn't seem to accept username argument like the 'id' command does...

View 5 Replies View Related

General :: Umask Value In Machine Usually It Shows 0002 - What Is First 0 For

Nov 26, 2009

When I see the umask value in a linux machine usually it shows 0002. I understand last three digits (002 in 0002) what is first 0 for?

View 2 Replies View Related

General :: Set Umask To 0000 For A Special User?

Jan 25, 2010

Please see below:

vim ~/.bashrc
umask=0000(bottom line)
source ~/.bashrc

But when I relogin, default umask was still 0022. How could I do ?

View 1 Replies View Related

General :: Umask Change Not Taking Effect

Dec 28, 2009

I have 2 Oracle users that generate .tmp files under /var/tmp. By default, the files have the permissions 644. Now, a need has arisen whereby the files created by these users have to have the permission bits as 664. Obviously, I changed the UMASK value for these users from 022 to 02. But the files are still getting created with 644 as the permission.

I tried restarting the application as I read that a relogin is required for the UMASK change to take effect. Even that hasn't helped.

View 3 Replies View Related

General :: Apply Umask Settings To An Account That Doesn't Log In?

Aug 4, 2011

On my Ubuntu 11.04x64 server, I have service accounts running which do not log in and do not have home directories. These service accounts are responsible for running processes which are invoked as services.When these services created new files, I need them to be created with the permissions 664 (UMASK 002).I edited the /etc/profile umask setting to reflect this. I see that now my user account creates files which reflect this new umask setting, but the service accounts do not when I manually created files using their accounts (sudo -u serviceaccount touch newfile).

View 1 Replies View Related

General :: Set Umask For Process Running Root User?

Nov 23, 2009

I am trying to set the umask for a process(orkaudio) which is running as the root user.This program creates dir and files and I need the umask to be 022. I have edited my /etc/bashrc -- and when i type in umask i get 0022 --- Not sure how to go about getting this resolved...

View 1 Replies View Related

General :: Change Umask For Files Created In Ext2/ext3

Oct 28, 2009

I have ext3 partition mounted on /mnt/shared/ as follows

Code:

Permissions above are of the actual mounted fs.

Goal is to have all files created on the fs
1) to belong to group 'users'
2) to have this groups permissions set to rw (rwx for directories) so that all users who belong to group 'users' have full read/write access to data and everyone else to have only read access.

Now because of setgid bit (s) in group permissions every file created has group 'users' and additionally setgid bit is set for directories. Because every users umask by default (on my system) is set to 0022 all created files will have permissions 644 for ordinary files and 755 for directories.

Net result of above means that users A and B who both belong to group 'users' won't be able to modify files created by the other.

So how can I make files created on the fs to be created always with umask 0002 WITHOUT changing default umask for users that is used elsewhere (like in their home directory) ?

View 1 Replies View Related

General :: Setting User Mountpoint Permissions In Fstab Without Uid / Umask

Jan 30, 2010

I'm struggling to understand an aspect of mounting and mountpoints with /etc/fstab. There is a large number of sites and threads that make recommendations using things like uid, gid, umask, and other options. These methods, however, which I've used, are file-system specific, useful only for filesystems such as (V)FAT and NTFS that allow them.My current situation is that I am mounting partition /dev/sdb5 in, let's call it /media/myMount. My goals:Mount this partition automatically upon boot using /etc/fstab...The partition should be fully accessible only to a specific user or group.What I've done is create the mount point in /media:

If user michapma were to carry out the mount, I believe it would work; however, I want the mount to happen automatically during boot. So, how can I achieve my user (or group) permission goals for this and any other such partitions using fstab?The manpage for mount has been helpful, but after reading many tutorials and forum threads, the only way I know how to do it is to have the user do the mounting or rely on the file-system specific options.

View 2 Replies View Related

Debian :: Changing Default User

Mar 22, 2016

I'd like to know if there's a reliable way to change the default user in Debian: when I installed testing starting from Jessie, I used rsync to set up a duplicate stable installation and then upgraded it to testing, as a result I now have the same username for both installations, which is sometimes kinda confusing.

Reading around a bit, looks like you can indeed change your username with relative ease, but then there will be always something left behind somewhere still pointing at the old username: is that the case?

View 10 Replies View Related

Fedora :: Changing Default App (ie Caliber)

Oct 4, 2010

After finally installing Caliber E book Management, I realized it made itself the default App for my CBR and CBZ files (these are just renamed rar and zip files used for digital comics)

I tried right clicking and choosing -open with- Other Application and checked the "remember this application" after making Archive Manager the default; but when I click on a cbr and cbz file, caliber still start off.

What is the preferable way of changing the default application for a file type?

View 6 Replies View Related

Fedora :: Changing Default Web Browser In F15

May 27, 2011

I have updated from Fedora 14 to Fedora 15. I have both Firefox and Chrome installed. FF used to be the default browser, but since the upgrade, each time I click on a link somewhere (help pages, documents, terminal etc.) they are opened in chrome. How do I change it back to FF?

View 5 Replies View Related

Ubuntu :: Changing Default Permissions Of /dev/sdb

Jan 4, 2010

im looking to allow virtualbox raw disk access to /dev/sdb

currently if i

ls -l /dev/sdb
brw-rw---- 1 root disk 8,2010-01-04 17:00 /dev/sdb

now if i chmod this to 777 or use chown to change the owner this temporarily works but after a few moments it defaults back to its original permissions.

is there a way i can define the permission? i was thinking fstab but i can't have a mount point?

View 5 Replies View Related

Ubuntu :: 10.04 - Changing Permission To 755 (Default)

Jun 21, 2010

I am using Xampp on ubuntu 10.04 and I have set my document root to a folder in my home directory for ease of use with netbeans. There are several times where I have to manually go and change the permission to 755. If you just place a file in the directory it does not default to 755, seems odd since the document root folder is in my home directory. Chmod works fine but I was wondering is their a way to make all files or folders added to my document root to default to 755?

View 2 Replies View Related

Ubuntu :: Changing The Default Wm Of Startx?

Mar 15, 2011

I'll use i3-wm, just want to know how can I start it instead of gnome using startx.

By the way, where can I get detailed info on X? I am a little confused, don't really understand what startx really starts, what X is and what does it do, how to config.

View 9 Replies View Related

Ubuntu :: Changing The Default OS In GRUB?

Jul 19, 2010

How do I change the default operating system in Grub? I'm running Ubuntu and Windows 7.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved