New answers tagged

0

i was facing the same problem and cannot login for my user. I tried theses two methods mentioned above 1- change the premissions 2- delete the iceAuthority file but still i could not make it so i make a simple move by crating a new user At the login screen, press Ctrl+Alt+F1 to get to the console. Log in there. create user by addser as describe in this ...


0

I know that this is an ancient question, but I have a solution that I think is much simpler and better. Wine only checks whether you own the top-level directory of the wine prefix. Therefore, you can simply make a new directory and put symbolic links to all the contents of the wineprefix you want to share in that directory. This is what I would recommend: ...


0

sudo su chown user_name folder_name First Open your super user which is root In the above Command user_name is the name of user on which you want to set the ownership folder_name is the folder which ownership you want to change


0

What this command does is appending deb http://www.duinsoft.nl/pkg debs all to /etc/apt/sources.list. Let's do it in an other method! Just open that file and append it manually! sudo nano /etc/apt/sources.list Then add deb http://www.duinsoft.nl/pkg debs all to end of it and press Ctrl + O and then ENTER to save the changes and finally Ctrl + X to quit ...


0

When you type adduser hafiz www-data it creates a new user, hafiz and add it to the www-data group. When you type adduser hafiz harron www-data you are not using the command correctly. If you simply want to save files to the /var/www/html directory you just need to make sure that your user has permission to write files so that group. Since /var/www/html is ...


0

Funny you ask, because I saw that today in our lab just today. Drives are lettered in the order they are found, sda, sdb, and so forth. Those letterings can be shifted when new devices are inserted. If the old config is looking for a partition in a place, but it finds MS Windows instead, for example, then blam! If you put settings in /etc/fstab using ...


0

In your /etc/vsftpd.conf file, you need to uncomment the line: #local_umask=022 I.e. remove the hash form the beginning of the line and change the mask value to 033, so that it looks like: local_umask=033 After restarting the service, uploaded files will be readable by all other users of the system. This will not affect the files already uploaded. You ...


0

"Everyone" means code running as any user on your machine both human users and server daemons. Most server daemons have access controls of their own. So making something 777 doesn't generally open it to the whole world but what it does mean is you lose defense in depth. If you are (for example) running a webserver and the web server has a security flaw they ...


0

A caveat: I have never done this myself, but I was contemplating it... hence I looked it up. You create an encrypted folder with encfs, see this help page. Basically, you back-up and move your /var/www directory to a temporary location. Than you recreate it as described in the help page, copy in your old contents (cp -R <from> <to>) and chown ...


0

A solution is to use chown command to take ownership of the interested folder. From terminal: navigate to the ~/.config/blender folder; check current permissions with dir -ls. For example, in my case, the folder for blender 2.72 was owned by root. So I fixed with: sudo chown -R myusername:myusergroup /2.72 Where myusername and myusergroup are my actual ...


3

Both sudo pip install and its other common variant sudo -H pip install should not be encouraged because it is a security risk to use root privileges to use pip to install Python packages from PyPI (Python Package Index). From http://stackoverflow.com/a/21056000/486919 (emphasis mine): When you run pip with sudo, you run setup.py with sudo. In other ...


1

No, this is correct. I cannot validate this claim. I always use sudo -H with pip. pip can only damage operating system files as much as apt. Only do not use sudo with pip when you want to install only for that user.


3

The problem on your system is that your umask settings are a bit strange/messed up. For general information about umask please refer to What is "umask" and how does it work? In short we can say that the umask defines the default permission set for new files. It is configured in /etc/login.defs. The default value for umask is 022 which results in ...


0

Reverting to build 28 of the 4.4.0 kernel causes the issue to cease. Specifically, Linux 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:08:35 UTC 2016 i686 I conclude there is a regression between build 28 and 31 which causes the automounter to malfunction, unless anybody can see something I did wrong in my configuration files (i.e. I'm calling it a bug, you ...


1

Your problem may have its root in various causes, here are the solutions for two of them: Folder and File Permissions Not only the site.com folder, but also all parent folders need to have their permissions set so apache can traverse them. Please check if /home, /home/ihab, /home/ihab/Workspace and /home/ihab/Workspace/Webdev do have proper settings. They ...


0

I just managed to fix that by: Login with sudo: sudo mysql -u root Updating the plugin which were auth_socket: update mysql.user set plugin = 'mysql_native_password' where User='root'; FLUSH PRIVILEGES;


0

You have to edit /etc/samba/smb.conf. Open it as root, go to the end, where the shared folder you want to configure is placed and add the parameter inherit permissions = yes at the end of the specific folder section. Then save the file and either reboot your system or restart samba services manually by typing sudo service smbd restart sudo service nmbd ...


1

You should change owners. run this command sudo chown newuser: /media/kalenpw/HDD Instead of the "newuser" put your Ubuntu user


0

Ashish, Make sure that your NTFS partition is mounted with read-write option. You can mount your NTFS partition /dev/sda1 using following command. sudo mkdir /mnt/ntfs/ sudo mount -t ntfs-3g /dev/sda1 /mnt/ntfs/


0

I don't see how being external or internal makes any different: Linux will mount what you say him to mount. The difference here is if the HD is mounted by the system, it will be mounted in the way the system thinks it should be mounted and that might results in permission problems. I never use /media to mount external drives. If you add the external HD to /...


1

Summary Another cause for your troubles could be, that the data partition might be mounted with noexec mount option in fstab. To evaluate if this is indeed the cause, you should have a look at two little things: the /etc/fstab configuration file, which holds (nearly) all partitions and other stuff that should be mounted at boot time the output of mount ...


2

I guess the UID (user ID) that's been assigned to your user on the previous system differs from the new one. Try terdon's hint and check which user owns the file(s) on the second disk: $ ls -l <directory> If this assumption is correct the owner column will either contain a number instead of your own username, or some other username. Also check that ...


1

Rinzwind: my stripped-down script I posted in the question above doesn't show it, but there's a problem with the 'pmount' solution. The problem is that it only appears to be able to mount to /media. The full script is more complicated: it creates a 500MB large image file (image of a USB pendrive), partitions it into 2 partitions (FAT32 and Ext3) , mounts ...


3

Use pmount instead of mount. pmount ("policy mount") is a wrapper around the standard mount program which permits normal users to mount removable devices without a matching /etc/fstab entry. Probably want the ... -w, --read-write Force the device to be mounted read/write. If neither -r nor -w is specified, the kernel will choose an ...


0

You specified your share with NFSv3-style syntax. When mounting on the client, try mounting with -o nfsvers=3 mount -t nfs 1.2.3.4:/home /home -o nfsvers=3 By default, NFSv4 is used which is kind of compatible with v3, so the mount succeeds, but the mapping of user ids and permissions is messed up. So either use NFSv4 server-side or force the client to ...


0

echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf && service vsftpd restart Run the above command every time when editing conf.


2

(I know I shouldn't comment in an answer, but not enough reputation to comment.) blade19899's answer worked for me except for symlinks. E.g. it applied 755 to /bin/bash, but then applied 777 to the symlink /bin/rbash, effectively 777-ing /bin/bash. As I already had the fileper.log file, I just modified the destination-end command: while IFS=: read -r -d ''...


0

try this in terminal gksudo nautilus You can manage it through the window that it opens.


0

I found my mistake. I was trying to make a copy for the file from inside the file not from outside and this was t


0

try to use this in terminal sudo apt-get install ntfsprogs sudo ntfsfix /dev/sdXY where XY is the name of the drive


2

When you try to copy /src it shows that the file does not exist because if a path starts with a slash, it is treated as absolute path. That means it is treated as relative to the file system root /. Simply omit the / at the beginning of the local path and don't forget to specify a path on the target computer, like this (running from inside your home ...


0

The problem seems to be with the specific file /etc/grub.d/bin/grubcfg_proxy. Press Alt + F2 or open a terminal and run gksu nautilus. Browse to /etc/grub.d/bin/ and edit the permissions of grubcfg_proxy. It should run fine but if sudo update-grub displays error for some other file, repeat the process for that file.


0

I ran into the same problem on a NAS I try to create. I think the /etc/init.d/minidlna script should not: if [ -z $GROUP ]; then GROUP=$USER fi But do a if [ -z $GROUP]; then GROUP = \`id -gn $USER\` fi Because the primary group of the user may differ from the user. Especially when you want users to share you want a group they share to be ...


1

After changing the data directory you need to change the Apparmor settings to solve the permission issue Open /etc/apparmor.d/usr.sbin.mysqld Comment out /var/lib/mysql/ r, /var/lib/mysql/** rwk, Then /mnt/01D0900CA5E8F760/ProgramData/MySQL/MySQLServer5.6/ r, /mnt/01D0900CA5E8F760/ProgramData/MySQL/MySQLServer5.6/** rwk, Also see to it ...


0

You don't need to install FTDI drivers on Ubuntu. Follow this thread: FDI. This shows you an easy way to make the FTDI work on ubuntu.


1

To make a FTDI breakout work on Ubuntu: Open the file /etc/group with root permissions: sudo nano /etc/group After that, search for tty:x5: and dialout:x20: Add your user to this groups typing your username in front of each line: tty:x5:<user> dialout:x20:<user> You can also use the next two commands to avoid search for the file: sudo ...


0

First press Alt + F2 and type in gnome-terminal. This is the normal command to start terminal. If the terminal doesn't start then again press Alt + F2 and type in gksu nautilus. Next, enter your password and move to usr and search for terminal and set it to executable.


0

Add this line to the [global] stanza of smb.conf and see if it goes away: use client driver = yes


1

You might likely solve with a sudo chown USERNAME:USERNAME -R /home/USERNAME where you substitute to USERNAME your user's name (the short one, without spaces and such that you can see at the beginning of the terminal line).


2

Permission values are octal, and represent 3 3-bit fields. 5 has only one value 0b101. The permissions you are trying to set are masked with your umask value, which, I surmise is 026 That is: Value you're trying to set: 755 or 0b111101101 Umask 026 or 0b000010110 ----------------------------------------------- Actual bits used by `...


2

To grant a user to run a specific command with root privileges you set up a sudo rule by typing sudo visudo in a Terminal. This lets you edit the /etc/sudoers file. For example to grant a user Luca the privileges to run "command" as root you add the line: Luca ALL=(ALL) NOPASSWD: /path/to/command You can set the date and time by using sudo date -s "...


0

It seems that I was able to solve it myself. I installed the following Polkit related packages on my Ubuntu system using apt-get: policykit-desktop-privileges policykit-1-gnome. Then I added the following to my i3 config file: exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &


2

Well you used the -R (recursive) flag then your system is screwed , the best solution is to reinstall Ubuntu. Another way to fix it, is to install the same version of Linux on another machine (or VM) then just copy /usr over to the old machine , good luck.


0

Open Terminal and type this text for each icon you want visible on the desktop, if you're using gnome. For home folder: gsettings set org.gnome.nautilus.desktop home-icon-visible true For computer icon: gsettings set org.gnome.nautilus.desktop computer-icon-visible true For volume icons: gsettings set org.gnome.nautilus.desktop volumes-visible true


0

Try to change its permissions in terminal. You could make it executable only by by a certain group, such as wheel or admin. Sadly (or perhaps fortunately), a file can only have one group ownership so chown simply wouldn't work by itself. Try "sudo chown root:wheel /sbin/shutdown" and then "sudo chmod g+x /sbin/shutdown". This will make the file executable ...


0

Did you unmount the drive? Check for that. If that isn't the problem, here's how I'd do it. In windows there is a command line utility called diskpart. It allows you to manage drives. Go to your command prompt and type in diskpart and give it permission. Type list disk and find the drive by its size. Type select disk- whatever disk number it is. Now you can ...


0

You can run sudo gdebi perl-tgicl_2.1-1_all.deb to get the dependencies installed. Then the OS is ready for building TGICL-2.1 . ( perl-tgicl_2.1-1_all.deb will fail with the same error : libfile-spec-perl version. I.e. the package was built year 2010 : A different perl version.) .... .... These packages were installed : libfile-homedir-perl libfile-which-...


1

First you really should not be running wine as root, it is a security risk to do so, see Is installing wine in Ubuntu safe? and Risks/Disadvantages associated with Wine and links. Therefore, ~/.wine should be owned by your user and you can modify file in ~/.wine without running as root or using gksu Second , gksu is depreciated, see When to use pkexec vs. ...


1

This is definitely possible. First, change /db-data's group to app-data: sudo chgrp -R app-data /db-data Now set up the permissions: sudo chmod -R g+rwx /db-data sudo chmod -R g-w /db-data/archived-data/* sudo find /db-data/archived-data -type d -exec 'chmod' 'g+rwx' '{}' ';' sudo chmod -R g+rwx /db-data gives app-data full permissions to /db-data and ...


1

We found that a 3rd party web app was managing it's own session files and failing garbage collection. Once we deleted some very old folders of them, the issues disappeared.



Top 50 recent answers are included