Tag Info

New answers tagged

0

I found a way what worked for me! I changed the /etc/fstab to: //servername/sharename /media/sharename cifs credentials=/home/ubuntuusername/.smbcredentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm 0 0 Also I made my account sudoer by adding a line in /etc/sudoers %Group ALL=(ALL:ALL) ALL


0

chown cannot make changes to read-only filesystems.


2

If you have gone and changed your uid and gid, go and change them back now before even going past this first part of this answer. Unless you really know what you're doing, you should NEVER go change your uid or gid just to mount a drive, as you can break other permissions in the computer and potentially lose access to your own home directory in the ...


1

As the error states there is no cmap.bin in /media/xavi/Elements/ubuntu_programes/. Check if the file has the right name: Change to the directory with cd /media/xavi/Elements/ubuntu_programes/ and list the files with ls -la If the file has the wrong name change it with: mv wrongFileName cmap.bin If it does not exist at all copy it there with: cp ...


0

Wrong permissions, the server runs as mysql. Correct with: sudo chown -R mysql:mysql /var/lib/mysql/databasename example: % top -u mysql PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...


1

To see a file (not its contents, only the file itself), you need to have read permission for the file's parent directories. There are no "view" permissions. As long as you can read a directory, you will be able to see all the files in it. Whether or not you can modify the file or read its contents will depend on whether you have execute permissions on the ...


3

Correct the ownership, assuming pipi is your username: chown -R pipi:pipi /home/pipi and the permissions for all folders: find /home/pipi -type d -print0 | xargs -0 chmod 775 775 - These are the default permissions when you create a new folder.


1

If you're doing this through a GUI, the executable option is usually a checkbox below the permissions dropdown. Alternatively, you can do this through the command line by running chmod +x filename, where filename is the name of the file that needs to have the executable bit set.


1

i found a very easy answer for this problem, just type this in the terminal udisks --mount /dev/sda2 --mount-options umask=022 (mounts with exec) steam will accept the windows partition and start downloading/installing your game.


0

There is a workaround. In windows create the Steam Library on the Windows drive In linux create a new Steam Library on you linux partition. Close Steam and remove the files inside the Steam Library folder. Link your newly created Steam Library on linux to your windows Steam Library with: ln -s /path/to/windows/Steam_Library /path/to/linux/Steam_Library


0

you have many solutions to this case add your user as a member of the group deluge change ownership of created files by deluge change permissions of the newly created files Add your user as a member of the group deluge sudo usermod group-name user-name change ownership of created files by deluge sudo chown username:username ...


0

sudo needs at least one execute bit set to execute the file i.e. you need to set the execute bit for (at least) user or group or others. If no execute bit is set you can't execute the file as sudo ./script. This example will make you clear: $ ls -l test_scr -rw-rw-r-- 1 user user 30 May 4 03:50 test_scr $ sudo ./test_scr sudo: ./test_scr: command not ...


2

This is possible if .nano_history does not exist and you edit any file as root. Start a search action with Ctrl+W and .nano_history has the wrong ownership. sudo chown arthur-dent:arthur-dent /home/arthur-dent/.nano_history Later, the ownership of the file will not be changed. I've tested: % ls -l .nano_history ls: cannot access .nano_history: No such ...


0

The user that runs apache/php is www-data. Run sudo chown -R www-data:www-data /var/www/deploy.log to make the file editable by the web server. The other files you want to perform operations on also need to be writable by the webserver.


1

A simple command in a terminal: sudo chown -R <your_username>:<your_username> ~/.local/lib If that is not enough, even this command (note the uppercase X) sudo chmod -R +X ~/.local/lib from man chown NAME chown - change file owner and group from man chmod execute/search only if the file is a directory or already has execute ...


2

Bellow you can see me make a test folder and change the ownership of that folder to another user. I cannot create a file if the directory isn't owned by me. Similarly, as testuser, I couldn't remove a test file owned by my account. But as you see, if a user can run sudo, that user can change ownership of the folder, change file permissions, and thus - view ...


1

When you use any non-standard directories with apache you need to also edit /etc/apache2/apcahe2.conf and add in a <Directory /bla/bla>stanza so that apache knows it is O.K. to access the area. Just copy the existing /var/www or /var/www/html one. Example (from another question, and for a different location): <Directory /var/www/> ...


1

Read Only is the state that recovery mode boots into intentionally. What you need to do is remount the root partition with read-write privileges. This will remount the drive as readable and writable. Execute this in the recovery console: mount -rw -o remount /


1

You have completely removed the read and executable rights for groups and others and all rights for the owner for all files and folders in /usr/local/nagios/libexec/ but not for /usr/local/nagios/libexec/ itself. It can no longer be ascertained, as the rights actually denominated. This command makes it reversed, but it may be that too many rights are then ...


0

Here is your answer. How Rinzwind said, you need a maximum of 664. Therefore 777-664=113 local_umask=0113 I quote: In case you are wondering where to set your umask, it can be set in the vsftpd config file (/etc/vsftpd.conf) as anon_umask for anonymous access and local_umask for users. For the mask to work properly (even without anonymous ...


0

Apart from chmoding files and editing apache .conf files, I want to say that nothing worked for me because my files were on a partition that I had auto-mounted via nautilus. This limits the partition for your user only. To check if your files are visible by www-root or whatever user runs apache (run ps -aux | grep apache2 to check), run the following ...


0

sudo chmod -R +rwx /usr/local/bin/FastQC Should have set the read / write / execute flag to /usr/local/bin/FastQC and to its content for the owner, for the group and for the others, but from your ls -la output the group and the others are missing the write flag: drwxr-xr-x 3 kat kat 4096 mei 8 14:20 . [...] drwxr-xr-x 7 kat kat 4096 mei 8 14:20 ...


0

I think /usr/local/bin/FastQC is a symlinked directory and since you said you already own it, then probably you may have to add the execute permission to the original location where the fastqc program is. Also note at what step the script crashes - is the script trying to create any files/directories at places you don't have permission to, etc..


0

I got the same error. I end up putting FastQC to /usr/share, as many other packages are put there, and put a link to /usr/local/bin, as suggested by the installation guide. Then I changed the permissions to files under FastQC. sudo ln -s /path/to/FastQC/fastqc /usr/local/bin/fastqc sudo chmod -R 755 /path/to/FastQC


1

You are not very clear on the things your friend is supposed to do in the folder. As you state that www-data should have write rights as well, I assume this is a web data directory. For this, sFTP or scp would be my tools of choice for your friend. This answer explains how to set up both in a chroot environment. If your friend actually has to log in via ssh, ...


0

Just to clarify for others as I've stumbled on this question when first searching for it on Google: Issue: After doing all the necessary setup for a LUKS container file/harddisk that is already mounted with root, a user account has not write privileges to it, only read. (this is the case for most tutorials and instructions above) Solution: We need to ...


0

.exe file just is executed on windows platform. To run a .exe file on linux, you need to install "wine". After that, you can run .exe file with the following syntax: wine file.exe Hope you can fix your problems.


0

The file is owned by root. You should be using chown instead: sudo chown $USER:$USER .bash_login


0

Add alex and bob to some group, and execute chgrp -R somegroup /home/alex/bob_folder_access chmod -R g+rwX /home/alex/bob_folder_access


1

Owner User and Group of my /var folder is root/root (permission 755). This is my output of: ls -d /var/ drwxr-xr-x 13 root root 4096 Apr 16 2014 /var/


0

In general it's always helpful to write out all the commands and their results. For Arduino in particular, what does this command return? $ ls -l /dev/ttyACM* If it indicates less permission, you might want to give yourself read and write access, e.g.: sudo chmod 600 /dev/ttyACM0


1

In the [global] section of your /etc/samba/smb.conf add the following lines: [global] usershare owner only = false unix extensions = no follow symlinks = yes wide links = yes ntlm auth = no lanman auth = no client ntlmv2 auth = yes Also, check the way the NTFS partitions are mounted in the /etc/fstab file. I had to add default 0 0 to the end of my NTFS ...


0

In the global section of your /etc/samba/smb.conf, add the following lines in: [global] usershare owner only = false unix extensions = no follow symlinks = yes wide links = yes ntlm auth = no lanman auth = no client ntlmv2 auth = yes Hope this helps.


4

The program you are trying to execute seems to be for the Windows platform. If you do a file programname.exe you will get information about the file. Example: file Setup.exe Setup.exe: PE32 executable (GUI) Intel 80386, for MS Windows This means it will not execute unless you have a working Windows system (dual boot, inside a virtual container or maybe ...


1

From man NetworkManager.conf: keyfile plugin is the generic plugin that supports all the connection types and capabilities that NetworkManager has. It writes files out in a .ini-style format in /etc/NetworkManager/system-connections. For security, it will ignore files that are readable or writeable by any user or group other than root ...


1

You can just change the directories permissions to 700 (which equals to rwx------ which means no access at all for everybody, except full access for the owner). That way, no normal user (except your user account!) can enter the directory. They will still be able to see the folder from the outside, but they neither can open it to list its content nor can ...


1

you can use steganography method its not also protect your files it also hide your files https://scottlinux.com/2014/08/12/steganography-in-linux-from-the-command-line/ first install steghide sudo apt-get install steghide 2nd steghide embed -cf tux.jpg -ef mytext.txt Enter passphrase: Re-Enter passphrase: embedding "mytext.txt" in "tux.jpg"... ...


0

You need to check permissions of .oui file located at /home/oracle/Desktop/linux_11gR2_database/database/install/.oui. Please give read,write, execution permissions to it. chmod 777 -R /home/oracle/Desktop/linux_11gR2_database/database/ Please check permission of oraInst.loc located at /etc/oraInst.loc Permissions should be -rw-r--r-- root root ...


0

create a new usergroup webdev and add the www-data user to it. sudo addgroup webdev sudo adduser www-data webdev Then go ahead and add your user to that group and make it the default group for yor user. sudo adduser {your-user} webdev sudo addgroup webdev Last thing to do is to make sure, the group webdev has rwx rights on the files sudo chmod 775 -R ...


0

Turns out the blackbox executable was a 32-bit program, and I am running a 64-bit OS. Here's the (somewhat hacky) steps I took to resolve this issue (partially chronicled in this question on Superuser): uname -m told me I have a 64-bit OS, but file blackbox told me that this exe was 32-bit. ldd blackbox (strangely) told me that the file was not a dynamic ...


4

First, edit the /etc/sudoers only with visudo You can set the permission to the user joe for apt-get command only adding the following line: %joe your_hostname=(root):/usr/bin/apt-get Once logged in as joe, you can check the permissions: sudo -l Edit: The user will be able to use apt-get update, upgrade, install, etc; since those are just flags for ...


0

You can choose tripwire file integrity manager. http://www.tripwire.com/register/tripwire-enterprise-file-integrity-manager/ http://www.thegeekstuff.com/2008/12/tripwire-tutorial-linux-host-based-intrusion-detection-system/


3

require authentication for all changes to that file (even as root) I have a feeling that this is not possible. Definitely not completely waterproof. The superuser is God on the system. To monitor a file or folder, you can use the following command: sudo apt-get install auditd # if not already installed sudo auditctl -w <path_to_file> -p w ...


1

Setting immutable attribute on the file would help preventing any changes to it. As for monitoring - you can probably achieve it in many ways starting with some shell script verifying size, checksum, modification time or whatever else you find useful, ending on some more sophisticated integrity checking solutions like tripwire or whatever currently is ...


0

This is my desktop, and I encrypted my home folder. Website projects are in my home folder, in the encrypted part. This seems to be problematic, probably because the apache user has no rights for my home folder. After moving the Eclipse workspace folder outside my home folder it all started working.


8

NOTE: The question at the time addressed Email transfer (per comments from the OP on the question). This answer is written to address that question as it was, in that email is the transfer method available here. When using email to transfer files between systems, you can't 'preserve' all the file permissions as you want them to be when just sending the ...


0

You got permission denied from ntfsfix because you didn't use sudo. Mount is telling you that it can't figure out what kind of filesystem it is ( which does not bode well for being able to access your filesystem at all ) and so it wants to you tell it with -t ntfs, but since it couldn't figure this out on its own, this likely won't work either because your ...


0

Also make sure that the user's home directory (on the server) actually belongs to the user ssh'ing into (was set to root:root in my case). Should have been: sudo chown username:username /home/username;


0

The file /opt/android-studio/lib/bootstrap.jar has the wrong permissions. Fix this with the following command: sudo chmod g+r,o+r /opt/android-studio/lib/bootstrap.jar Now you can use Android Studio as a normal user. Unless there are other incorrect permissions.


0

I had troubles when I worked with JRE 1.8 version. Change, better remove JRE 1.8 and use 1.7 on Android Studio use version 1.6



Top 50 recent answers are included