Tag Info

New answers tagged

0

Hmh a simple cp should do it, or am I wrong? cp /etc/default/keyboard.tmp /etc/default/keyboard then try to do a forced removal rm -rf /etc/default/keyboard.tmp If it still doesn't work I suggest, that the file is in use by a service or daemon or application and will be deleted after reboot or at least the Service/daemon/application has been closed.


0

Open the web browser that you used to download the Java SE and NetBeans Cobundle and Internet Download Manager. Find the location of the files you downloaded by checking your web browser’s download history. Your web browser’s download history can be accessed by Tools -> Downloads in Firefox and Chromium or with the keyboard shortcut Ctrl+J in Chrome and ...


0

After you have transferred the files on to your desktop you may use the command chown to change ownership to yourself


0

/usr/local/share/lxr/lxr-2.0.3/scripts$ su perl configure-lxr.pl try this after running this will be asked for password, enter password and proceed. if this not works than let me know ok .


-2

sudo chmod o+x -R /home sudo chmod 777 -R /home This works for me.


1

/proc/ is a pseudo file system: when you read/write on any /proc/file you don't access a real file or real memory, but you call some specific kernel function (depending of the file) that acts as a file. It returns data if you read the file, set data if you write to the file. And if there is no write function defined for a specific file, writing to the file ...


0

df -h Copy the location where the drive is mounted. Then enter sudo chmod -R 777 /mounted/on/location


0

Here is another way sudo groupadd wireshark sudo usermod -a -G wireshark YOUR_USER_NAME sudo chgrp wireshark /usr/bin/dumpcap sudo chmod 750 /usr/bin/dumpcap sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap sudo getcap /usr/bin/dumpcap


0

Uid 1000 is you. Uid 0 is root. Take a loot at output of ls -l /var/tmp . There's some folders that you have ownership of, and some that root owns. If you're not owner of a file and permissions are drwx------, you can't open it, simple as that. When you called kate with root privileges, kate needed to access folders that are owned by you, but the program was ...


0

I ran into the same problem when I switched my system to use freeipa. I played around with the groups, but nothing worked. I eventually discovered that I had a user directory in /media left over which had the wrong user id. Runninggetfacl /media/USERNAME returned this: getfacl: Removing leading '/' from absolute path names # file: media/USER # owner: root ...


0

OK, Problem is solved. It was in mounting of my HDD. Automatically system gived me minimal rights. So I formatted my HDD to NTFS and added it to /etc/fstab First find UUID of your diks ls -l /dev/disk/by-uuid then edit fstab sudo nano /etc/fstab add new line UUID={your uuid} /mnt/nat ntfs-3g 0 0 reboot system and add new download rout ...


0

Check the permissions of the file using ls -l program Then set the permissions using chmod to suit the requirements. Setting permissions to 777, where it isn't absolutely necessary, is never a good idea in my view.


0

Or use nautilus to change the properties of that file. Right-click on the file, Select Properties. Under "Permissions" tab, check "Allow executing file as Program". That's the GUI way.


1

try sudo bash ./program or just ./program if it didn't work try sudo chmod 777 program and then run it ./program


-2

If it is a text file, you might be able to place it under quotes like so: sudo "nano /proc/device-tree" Or if that doesn't work, try first sudo -i and then nano /proc/device-tree/


0

I plugged a monitor into the Ubuntu Server (it runs the Desktop version of Ubuntu 14, I believe) and upon logging in saw a message asking me to create a passphrase. I clicked on it and hit enter (for a blank passphrase). After that, I rebooted and password-less SSH logins seemed to work again. Before I mark this as complete, I will give this a few days of ...


0

You should try this then. It can be configured to your needs. Normally it is for Internet Cafes, but your use case description is pretty similar to that.


1

You’ll need rootly powers use sudo for that. Try this: you can use gdb (GNU Debugger) running as root to manipulate contents of memory. These may interest you: http://sourceware.org/gdb/current/onlinedocs/gdb/ http://stackoverflow.com/questions/3305164/how-to-modify-memory-contents-using-gdb


-1

sudo < editor > < filelocation > e.g. sudo gedit etc/dhcp/dhcpd.config


0

Press windows key and type user in the search box which will list Users and Groups. It will open the Users Settings interface. You can change permissions for individual users by clicking on the user and then click on advanced settings. In Change Advanced User Settings interface, select the User Privileges and choose your own restrictions for the user. You ...


1

If you type ALT+F2 and enter gksudo nautilus in the box that appears, you get a GUI file manager running as root. The ALT+F2 brings up a box allowing you to ask for any command directly, without a terminal - very useful at times. I mostly use it when I want kill This nautilus will allow you do the job - but be careful not do do anything else in it as all ...


0

I dont have much knowledge. But these steps solved my problem even without restarting my machine Follow these steps su root *enter root password cd /usr chmod -R 755 *


1

My server has 000-default.conf with 0644 (-rw-r--r--) permissions in sites-available and as a symlink lrwxrwxrwx in sites-enabled. You should check the permissions of the file in /etc/apache2/sites-available to make sure it's something sane (at least not world-writable) as the link permissions don't matter (accessing the file through the link uses the ...


0

Try this solution http://askubuntu.com/a/601722/392041 basically just replace Order allow,deny allow from all with Require all granted You could find the reason for this here in this link http://httpd.apache.org/docs/2.4/howto/access.html If you wish to restrict access to portions of your site based on the host address of your visitors, this is ...


2

This happens after you upgrade to apache 2.4.9+ basically just replace Order allow,deny allow from all with Require all granted should fix this issue. something like, <Directory /home/tom/Dropbox/web> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> ScriptAlias /cgi-bin/ ...


2

I don't have enough reputation to comment on Sylvain's answer so my answer here is to back it up and expand as per gaoithe's comments. I my case running Qt Creator 3.0.1 based on Qt 5.2.1. (on Ubuntu 14.04) I had qtbase5-examples qtbase5-doc-html already installed, but was still missing network and multimedia examples (and others evidently, but these were ...


0

From my samba config, this makes a public share [videos] comment = Videos path = /media/external/videos public = yes writable = yes create mask = 0660 directory mask = 0770 force user = mythtv force group = mythtv browseable = yes


0

to pinpoint the source of the problem, try to setup passwordless login for localhost on the server. This way, you deal with only one machine, the server. If it does work, the problem is caused by the client(s); if it doesn't, you'll have to figure out what's wrong with the server itself


1

To change the owner of a file (or folder) you use chown (ChangeOwner). You can specify a user and a group as owner. As in, chown option user:group file/folder In the situation you a describing, you could try the following, only change the group to www-data, so that the original owner isn't affected. chown -R :www-data /media/Test/Share Please notice ...


0

You can also run sudo chmod 0777 /home/storage Since FAT drives don't have permissions, linux applies the permission of the mount point to the entire drive.


0

Check this one. Or you can go for further details here.


0

I've solved the problem by myself usermod -a -G USER1 www-data chown -R USER1:www-data /home/USER1/public_html chmod ug+s /home/USER1/public_html this isn't the "best way" but, better then use www-data as owner and manager of all virtualhosts!!!


0

You can try the invalid user option on each share, or consider exporting their home folders. Are you using a single Windows computer with multiple users? change world permissions - chmod 0770 change the ownership of users sub-folder - chown user:* useful links: https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html ...


0

Have you tried sudo su - command . Running su root does not execute your profile , and any path variables set explicitly will not be available , might be the reason if missing auto complete. from error in comments ,right solution would be to change permission of your script, chmod u+x /home/marten/Downloads/NVIDIA-Linux-x86_64-346.47.run ...


0

Use the command sudo su. This elevates privileges to Super User. Remember to type in exit after you're finished though. Constantly running as SU is dangerous. If you forget to exit, you're exposing your system.


0

Do you have access to a Mac or Windows computer? If you do, go to sdcard.org. https://www.sdcard.org/downloads/index.html, scroll to the bottom of the page and agree to the terms and your download will start. I have successfully formatted many SD Cards that I thought we're unusable. Mainly for use in my RaspberryPi installs


1

This may work -- I recently helped my neighbor with a similar problem. Although this could be a software issue, it may indeed be a hardware solution that solves your problem. Look for a switch on the actual card and set it to the off/unlocked position, then reinsert it and you should be able to write to it as it will no longer be write protected (locked). ...


0

As bodhi.zazen mentions, root log in from ssh might be disabled. Honestly, this is not a bad thing. You might want to consider getting used to having to "su -" to root if you have to (or sudo -i if you use it). Try the following to check, grep PermitRootLogin /etc/ssh/sshd_config If you see the following come by, root login is disabled. ...


1

It's a genuinely interesting idea but not without issues. You could add a "semiadmin" group (your choice on the name), put a user in that group instead of the "sudo" group, and then add /etc/sudoers lines using wildcards to match the common places root-owned commands live: %semiadmin (ALL)=/usr/bin/*,/bin/*,/sbin/* The problem with this approach is you ...


-1

Login as the owner of the file who is not root and revoke execution permission from other users using this command chmod o-x filename


0

I have no Idea of this purpose but this is the common permission method sudo chmod 777 /mnt/share-name/www Edited just for you NOTE: THIS ALLOWS READ, WRITE AND EDIT


0

You could do chmod o-x test/script.sh, but this is pointless. The user could just copy the file to their home directory, make it executable and run it from there. It will run with the user's privileges anyway, unless it's setuid. And shell scripts can't be setuid, but copying a setuid file will remove the setuid bit from the copy anyway.


0

What you're trying to do is non-standard. There exists a Filesystem Hierarchy Standard that describes where every and all software must reside. That being said, this is your Personal Computer, so you can do whatever you want. ;-) I would install according to the standard and then copy the application/data to it's own home directory. sudo cp --preserve ...


3

Is current user in your group "users" ? Try groups command. If its not, than use sudo adduser USER-NAME users and then reload your session. Isn't /media/data1/test file already there (owned by someone else)? Try ll /media/data1/test. Are those partitions mounted without any restrictions? Try mount|grep /media/data command. Mind to share outputs of these? ...


1

I found the solution to the problem. I removed all of the individual sudo commands in my vpnon.sh script, and passed in sudo from outside of the script. In my /etc/init.d/vpnstartup file, I changed the su username -c to sudo $VPN_DIR/vpnon.sh which looks like this now: case "$1" in start) sudo $VPN_DIR/vpnon.sh ;; then called sudo ...


2

The reason for these being created with root ownership in the first place is usually the way sudo preserves some user environment. ls: cannot access .gvfs: Permission denied That folder .dbus and .cache with all it contents is supposed to be owned by the user whom the home directory belongs to. It is usually safe to delete either, it will be recreated next ...


0

Right I have spent 3 or 4 days trying to sort this out. Here is a shell script for a user: #!/bin/bash user=$1 directory=$2 if [ "$2" != "" ]; then echo "You are creating an ftp user -> "$user" with privelidges for the domain "$directory else echo "ERROR!!!" echo "please enter the command followed by the user and then domain (example.co.uk)" exit 1 fi ...


0

I've removed the option "user" (or "users") from /etc/fstab: /dev/mapper/slow--vg-bulk--lv /media/geovani/bulk ext4 rw,suid,dev,exec,auto,async 0 0 And now it executes normally. Ref: http://forums.gentoo.org/viewtopic-p-7462810.html#7462810


0

Maybe a permissions issue, try this: sudo mount -o remount,exec /dev/mapper/slow--vg-bulk--lv sudo chmod a+rx ./Downloads/genymotion-2.4.0_x64.bin sudo chmod a+rx /media/geovani/bulk/Downloads/genymotion-2.4.0_x64.bin


0

Try to use useradd -g $group $user or useradd -N -g $group $user instead of useradd -G $group $user Here's why: from Ubuntu.com: Ubuntu Manpage: useradd - create a new user or update default new user information : -g, --gid GROUP The group name or number of the user's initial login group. The group name must exist. A group number must refer to ...



Top 50 recent answers are included