I am having issued with drive permissions on Ubuntu 12.10. The server to which I'm connecting over ssh has two HDDs. Ubuntu runs off 'Drive 1', and the server app runs 'Drive 2'. When I formatted Drive 2 to ext4, I had to manually add the permissions for my user account to be able to read/write to it. This process went smoothly, and, when directly using the computer (in GUI mode), I can access the drive without any issues.
However, when I log in to the machine remotely via ssh, under the same user account, when I try to access Drive 2 (actually called LinuxDataDrive) (using cd command), I get the message:
bash: cd: LinuxDataDrive/: Permission denied
Why is this? I logged into ssh using the same (and only) user account, and on that same account, using the machine itself, I can access the drive without issue.
Thanks in advance!
uid=1000(karl) gid=1000(karl) groups=1000(karl),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),107(lpadmin),124(sambashare)
ls -ld LinuxDataDrive:
drwx------ 2 root root 4096 Apr 11 22:54 LinuxDataDrive –
drwx------ 2 root root 4096 Apr 11 22:54 LinuxDataDrive karl@KarlsMinecraftServer:/media/karl$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb5 49060680 6194752 40373720 14% / udev 4016332 4 4016328 1% /dev tmpfs 1611896 808 1611088 1% /run none 5120 0 5120 0% /run/lock none 4029732 0 4029732 0% /run/shm none 102400 4 102396 1% /run/user
karl is the username
KarlsMinecraftServer is the machine name
LinuxDataDrive is the actual name of the 'Drive2' referenced in the question.